prudhvigodithi commented on issue #15519: URL: https://github.com/apache/lucene/issues/15519#issuecomment-3690387313
If my above understanding is correct, going over the code the key change is here https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java#L149. 1st allow `scoreInnerWindowSingleEssentialClause()` and `scoreInnerWindowMultipleEssentialClauses()`, then call the post filter and finally the `scoreNonEssentialClauses`. There is also a todo comment https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/MaxScoreBulkScorer.java#L168 ``` // TODO: Sometimes load the filter into a bitset and use the more optimized execution paths with // this bitset as `acceptDocs` ``` If i'm not wrong the filter can be converted to bits then filter would be applied during collection itself avoiding even the post-filter step. When this isn't available, the post-filter approach would still be an improvement over the current leap-frog. -- 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]
