GovindBalaji-S-Glean commented on issue #14986:
URL: https://github.com/apache/lucene/issues/14986#issuecomment-3145194691

   One hack I can think of is that instead of `searcher` here, we send in a 
decorator of `searcher` with `IndexSearcher#createWeight(query)` just doing 
`query.createWeight()`. Then these per segment rewrites would not get cached.
   
https://github.com/apache/lucene/blob/46a4fee65580a35a39b1fb4d04a5d87b3ec7d1f2/lucene/core/src/java/org/apache/lucene/search/AbstractMultiTermQueryConstantScoreWrapper.java#L166
   
   What do you think? I am happy to implement.


-- 
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

Reply via email to