iprithv commented on code in PR #16002:
URL: https://github.com/apache/lucene/pull/16002#discussion_r3170783829
##########
lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java:
##########
@@ -146,7 +147,11 @@ public int score(LeafCollector collector, Bits acceptDocs,
int min, int max) thr
private void scoreInnerWindow(
LeafCollector collector, Bits acceptDocs, int max, DisiWrapper filter)
throws IOException {
if (filter != null) {
- scoreInnerWindowWithFilter(collector, acceptDocs, max, filter);
+ if (shouldPostFilter(filter)) {
+ scoreInnerWindowWithPostFilter(collector, acceptDocs, max, filter);
+ } else {
+ scoreInnerWindowWithFilter(collector, acceptDocs, max, filter);
+ }
Review Comment:
Sure, updated. The fast path now only uses filter docIDRunEnd() when the
matching run covers at least half an inner window, similar in spirit to
DenseConjunctionBulkScorer’s run-size guard. Otherwise it keeps the existing
leap-frog path. Thanks!
--
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]