jpountz commented on PR #11840:
URL: https://github.com/apache/lucene/pull/11840#issuecomment-1282004123

   > Of course in the case that somebody writes a subclass that only implements 
the IndexReader variant of rewrite it won't use the searcher. If this user 
subclass then rewrites subqueries on its own it will call 
"rewrite(IndexReader)" and so it is subqueries won't use parallelization. This 
is not so dramatic as a new query in user's code will just never pass 
parallelization down its subqueries.
   
   Using the same reasoning, I wonder if we'd solve 90% of the problem by 
propagating `Query#rewrite(IndexSearcher)` in `BooleanQuery`, 
`ConstantScoreQuery` and `DisjunctionMaxQuery` (the main queries that can be 
inner nodes in a query tree).


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