zhaih commented on code in PR #12324:
URL: https://github.com/apache/lucene/pull/12324#discussion_r1213482394


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/IndexedDISI.java:
##########
@@ -495,6 +496,7 @@ private void readBlockHeader() throws IOException {
     if (numValues <= MAX_ARRAY_LENGTH) {
       method = Method.SPARSE;
       blockEnd = slice.getFilePointer() + (numValues << 1);
+      nextExistDocInBlock = -1;
     } else if (numValues == 65536) {

Review Comment:
   Oh sorry I (perhaps github webpage as well :)) didn't make it clear: I want 
to change `65536` to `BLOCK_SIZE`.
   (Actually later on I found there's several more 65536 in this file, would 
you like to do a batch replacement?)



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