gf2121 commented on code in PR #14269: URL: https://github.com/apache/lucene/pull/14269#discussion_r1965325680
########## lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java: ########## @@ -87,6 +87,18 @@ public int advance(int target) throws IOException { public long cost() { return maxDoc; } + + @Override + public void intoBitSet(int upTo, FixedBitSet bitSet, int offset) { + assert offset <= doc; + if (upTo >= maxDoc) { + bitSet.set(doc - offset, maxDoc - offset); + doc = NO_MORE_DOCS; + } else if (upTo > doc) { + bitSet.set(doc - offset, upTo - offset); + doc = upTo; + } Review Comment: Thanks, much more clear! -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org