romseygeek commented on code in PR #16515:
URL: https://github.com/apache/lucene/pull/16515#discussion_r3803396045
##########
lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java:
##########
@@ -234,7 +234,11 @@ private void fillScoreBufferViaBitSet(DisiWrapper top,
Bits acceptDocs, int inne
filter.doc = filter.approximation.advance(innerWindowMin);
}
if (filter.doc < innerWindowMax) {
- filter.approximation.intoBitSet(innerWindowMax, filterMatches,
innerWindowMin);
+ if (filter.twoPhaseView != null) {
Review Comment:
Can we separate adding TwoPhaseIterator support into a separate PR?
##########
lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java:
##########
@@ -301,14 +305,23 @@ private void collectEssentialScoresIntoWindow(
FixedBitSet filterMatches)
throws IOException {
do {
- for (top.scorer.nextDocsAndScores(innerWindowMax, acceptDocs,
docAndScoreBuffer);
+ for (nextDocsAndScores(
Review Comment:
I wonder if there's a way of doing this that merges the filter into
acceptDocs? That way we don't need to add new methods to TermScorer and we
don't need to pass two parallel Objects around.
--
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]