FC's binarySearchLookup no longer accepts null key

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1412282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-11-21 20:54:44 +00:00
parent aed1b577a8
commit 156e5bfd80
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ public abstract class FieldCacheRangeFilter<T> extends Filter {
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
final FieldCache.DocTermsIndex fcsi = FieldCache.DEFAULT.getTermsIndex(context.reader(), field);
final BytesRef spare = new BytesRef();
final int lowerPoint = fcsi.binarySearchLookup(lowerVal == null ? null : new BytesRef(lowerVal), spare);
final int upperPoint = fcsi.binarySearchLookup(upperVal == null ? null : new BytesRef(upperVal), spare);
final int lowerPoint = lowerVal == null ? -1 : fcsi.binarySearchLookup(new BytesRef(lowerVal), spare);
final int upperPoint = upperVal == null ? -1 : fcsi.binarySearchLookup(new BytesRef(upperVal), spare);
final int inclusiveLowerPoint, inclusiveUpperPoint;