You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2013/01/28 06:53:34 UTC
svn commit: r1439262 -
/lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java
Author: rmuir
Date: Mon Jan 28 05:53:34 2013
New Revision: 1439262
URL: http://svn.apache.org/viewvc?rev=1439262&view=rev
Log:
don't return invalid bytesref in lookupTerm
Modified:
lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java
Modified: lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java?rev=1439262&r1=1439261&r2=1439262&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java (original)
+++ lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SortedDocValues.java Mon Jan 28 05:53:34 2013
@@ -111,12 +111,16 @@ public abstract class SortedDocValues ex
// pass this spare down to DiskDV, which will then
// "use" our byte[] ...
spare.bytes = BytesRef.EMPTY_BYTES;
+ spare.offset = 0;
+ spare.length = 0;
return mid; // key found
}
}
// nocommit is this the right way...
spare.bytes = BytesRef.EMPTY_BYTES;
+ spare.offset = 0;
+ spare.length = 0;
return -(low + 1); // key not found.
}
}