vsop-479 commented on code in PR #16245:
URL: https://github.com/apache/lucene/pull/16245#discussion_r3550560368


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene103/blocktree/SegmentTermsEnumFrame.java:
##########
@@ -690,7 +715,9 @@ public SeekStatus binarySearchTermLeaf(BytesRef target, 
boolean exactOnly) throw
 
     assert prefixMatches(target);
 
-    suffixLength = suffixLengthsReader.readVInt();
+    // suffixLength assigned in loadBlock, and all suffixes have the same 
length in this block.

Review Comment:
   `SegmentTermsEnumFrame#binarySearchTermLeaf` can only be called when the 
block is a leaf and `allEqual` is true.



-- 
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]

Reply via email to