iverase commented on code in PR #16077:
URL: https://github.com/apache/lucene/pull/16077#discussion_r3257535008
##########
lucene/core/src/java/org/apache/lucene/util/NotDocIdSet.java:
##########
@@ -77,6 +77,16 @@ public int advance(int target) throws IOException {
}
}
+ @Override
+ public int docIDRunEnd() throws IOException {
+ assert doc != NO_MORE_DOCS;
+ int skipped = nextSkippedDoc;
+ if (doc > skipped) {
+ skipped = inIterator.advance(doc);
Review Comment:
Damn that's not right. Er are advancing the internal iterator, that's bad.
--
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]