msfroh commented on issue #15887: URL: https://github.com/apache/lucene/issues/15887#issuecomment-4330710544
@sgup432 -- is the idea that the clauses are zero-cost on most segments, but low-cost on some segments? If the term queries don't match at all on the index, I would maybe have perhaps expected them to get turned into `MatchNoDocsQuery` during the `rewrite` phase. Then we would be able to rewrite the associated `BooleanQuery` into a `MatchNoDocsQuery`, then rewrite the disjunction to drop any `MatchNoDocsQuery` clauses. -- 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]
