vsop-479 commented on code in PR #13192:
URL: https://github.com/apache/lucene/pull/13192#discussion_r1580673258
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/blocktree/SegmentTermsEnumFrame.java:
##########
@@ -196,6 +207,90 @@ void loadBlock() throws IOException {
suffixLengthsReader.reset(suffixLengthBytes, 0, numSuffixLengthBytes);
totalSuffixBytes = ste.in.getFilePointer() - startSuffixFP;
+ // Prepare suffixes, offsets to binary search.
+ if (allEqual) {
+ if (isLeafBlock) {
+ suffix = suffixLengthsReader.readVInt();
+ } else {
+ // Handle subCode for non leaf block.
+ postions = new int[entCount];
Review Comment:
> assume We don't need positions to set suffixLengthsReader's position after
searching a block.
Setting `suffixLengthsReader`'s position is necessary, so we need
`positions`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]