mirror of https://github.com/apache/lucene.git
don't return invalid bytesref in lookupTerm
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1439262 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d70a0e0406
commit
41cfa17016
|
@ -111,12 +111,16 @@ public abstract class SortedDocValues extends BinaryDocValues {
|
||||||
// pass this spare down to DiskDV, which will then
|
// pass this spare down to DiskDV, which will then
|
||||||
// "use" our byte[] ...
|
// "use" our byte[] ...
|
||||||
spare.bytes = BytesRef.EMPTY_BYTES;
|
spare.bytes = BytesRef.EMPTY_BYTES;
|
||||||
|
spare.offset = 0;
|
||||||
|
spare.length = 0;
|
||||||
return mid; // key found
|
return mid; // key found
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// nocommit is this the right way...
|
// nocommit is this the right way...
|
||||||
spare.bytes = BytesRef.EMPTY_BYTES;
|
spare.bytes = BytesRef.EMPTY_BYTES;
|
||||||
|
spare.offset = 0;
|
||||||
|
spare.length = 0;
|
||||||
return -(low + 1); // key not found.
|
return -(low + 1); // key not found.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue