benwtrent commented on code in PR #14530: URL: https://github.com/apache/lucene/pull/14530#discussion_r2052479353
########## lucene/core/src/java/org/apache/lucene/search/comparators/TermOrdValComparator.java: ########## @@ -533,8 +533,8 @@ public void intoBitSet(int upTo, FixedBitSet bitSet, int offset) throws IOExcept if (disjunction == null) { if (docsWithField != null) { // we need to be absolutely sure that the iterator is at least at offset - if (docsWithField.docID() < offset) { - docsWithField.advance(offset); + if (docsWithField.docID() < doc) { + docsWithField.advance(doc); Review Comment: I think this is good. It should also go into 10.2, could you augment the changes entry for this bug fix to include this PR and such? -- 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