Skip to content

Commit

Permalink
Calling leafCollector.finish after collection is successful
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakn7 committed Mar 1, 2024
1 parent 127d3c1 commit fc0df6b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ protected void search(List<LeafReaderContext> leaves, Weight weight, Collector c
}
}
}
// Note: this is called if collection ran successfully, including the above special case of
// CollectionTerminatedException, but no other exception.
leafCollector.finish();
}
}
}

0 comments on commit fc0df6b

Please sign in to comment.