mirror of https://github.com/apache/lucene.git
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:
parent
e1d294b8e1
commit
a7e4ae4bbc
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue