Skip to content

Commit

Permalink
Changed to use advance and init to use docId() instead of nextDoc()
Browse files Browse the repository at this point in the history
Signed-off-by: expani <[email protected]>
  • Loading branch information
expani committed Dec 23, 2024
1 parent e3973eb commit 9e13d1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ private static void intersectScorerAndBitSet(
);
int seen = 0;
checkCancelled.run();
for (int docId = iterator.nextDoc(); docId < maxDocId; docId = iterator.nextDoc()) {
iterator.advance(minDocId);
for (int docId = iterator.docID(); docId < maxDocId; docId = iterator.nextDoc()) {
if (++seen % CHECK_CANCELLED_SCORER_INTERVAL == 0) {
checkCancelled.run();
}
Expand Down

0 comments on commit 9e13d1e

Please sign in to comment.