From a7e4ae4bbcf33c136015891f8fc309bfd39e9b14 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 15 Jan 2013 23:55:03 +0000 Subject: [PATCH] fix TestSort git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1433748 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/search/FieldCacheImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/FieldCacheImpl.java b/lucene/core/src/java/org/apache/lucene/search/FieldCacheImpl.java index 3bebaa284b9..85c573af969 100644 --- a/lucene/core/src/java/org/apache/lucene/search/FieldCacheImpl.java +++ b/lucene/core/src/java/org/apache/lucene/search/FieldCacheImpl.java @@ -1274,9 +1274,10 @@ class FieldCacheImpl implements FieldCache { throws IOException { BinaryDocValues valuesIn = reader.getBinaryDocValues(key.field); - - // TODO: would be nice to fallback to SortedDV if it's - // available but BinaryDV isn't? + if (valuesIn == null) { + // nocommit is this auto-fallback ... OK? + valuesIn = reader.getSortedDocValues(key.field); + } if (valuesIn != null) { return valuesIn;