mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 15:29:28 +00:00
LUCENE-4028: add missing subCode=...s in nextNonLeaf
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1334249 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f21f747bac
commit
20ad9d7253
@ -2436,12 +2436,14 @@ public class BlockTreeTermsReader extends FieldsProducer {
|
|||||||
if ((code & 1) == 0) {
|
if ((code & 1) == 0) {
|
||||||
// A normal term
|
// A normal term
|
||||||
termExists = true;
|
termExists = true;
|
||||||
|
subCode = 0;
|
||||||
state.termBlockOrd++;
|
state.termBlockOrd++;
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// A sub-block; make sub-FP absolute:
|
// A sub-block; make sub-FP absolute:
|
||||||
termExists = false;
|
termExists = false;
|
||||||
lastSubFP = fp - suffixesReader.readVLong();
|
subCode = suffixesReader.readVLong();
|
||||||
|
lastSubFP = fp - subCode;
|
||||||
//if (DEBUG) {
|
//if (DEBUG) {
|
||||||
//System.out.println(" lastSubFP=" + lastSubFP);
|
//System.out.println(" lastSubFP=" + lastSubFP);
|
||||||
//}
|
//}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user