fix TestSort

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1433748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-01-15 23:55:03 +00:00
parent e1d294b8e1
commit a7e4ae4bbc
1 changed files with 4 additions and 3 deletions

View File

@ -1274,9 +1274,10 @@ class FieldCacheImpl implements FieldCache {
throws IOException { throws IOException {
BinaryDocValues valuesIn = reader.getBinaryDocValues(key.field); BinaryDocValues valuesIn = reader.getBinaryDocValues(key.field);
if (valuesIn == null) {
// TODO: would be nice to fallback to SortedDV if it's // nocommit is this auto-fallback ... OK?
// available but BinaryDV isn't? valuesIn = reader.getSortedDocValues(key.field);
}
if (valuesIn != null) { if (valuesIn != null) {
return valuesIn; return valuesIn;