iverase commented on code in PR #16077:
URL: https://github.com/apache/lucene/pull/16077#discussion_r3257638717
##########
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:
Add some test for NotDocIdSet. Actually that condition was always false so I
added an assert instead that the skipped doc is alway lower than the current
doc.
--
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]