romseygeek commented on pull request #634: URL: https://github.com/apache/lucene/pull/634#issuecomment-1026767530
> This isn't a safe optimization though, it changes ranking. Adrien and I were talking about trying to do this kind of thing as part of query rewrites and got blocked by having to deal with scoring. Maybe we could add a ScoreMode parameter to `rewrite()`, and then do this directly in BooleanQuery? ie if you have a bunch of OR clauses that are all Term queries and you know that you don't need scores you can directly rewrite to a TermInSetQuery. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org