zhaih commented on issue #11838: URL: https://github.com/apache/lucene/issues/11838#issuecomment-1271850864
> Maybe a good idea would be to allow the heavy calculations in Weight and also Rewrite to execute in an Executor. +1, although I probably would like to start with rewrite first since I'm not aware of any weight creation that could easily benefit from execute it in parallel. I'm thinking about something similar to what @uschindler suggest, basically create another public method `rewrite(IndexReader, Executor)` on Query and default it to just call `rewrite(IndexReader)` without any action using executor, while in the IndexSearcher we could always pass in whatever executor we have. And then from there we could work on individual query's rewriting implementation. Seems people are not going against this idea I'll get a PR out soon, and we can start from there :) -- 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