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

   To add to @vigyasharma, I have been wondering if we should remove 
`SearcherManager` and encourage users to use `IndexReaderManager`. 
`IndexSearcher` is cheap to create and there are som reasons why it may be 
interesting to create a different `IndexSearcher` per query already, e.g. to 
tune parallelism based on current load, or to configure a timeout on the 
`IndexSearcher`.
   
   Maybe `MultiReader` falls in the same bucket. Presumably, the `MultiReader` 
is made from multiple `DirectoryReader`s, so maybe the application code should 
not create a `SearcherManager` that works with a `MultiReader` but instead 
manage two (or more, one per Directory) `ReaderManager`s and dynamically create 
a `MultiReader` and then an `IndexSearcher` on top of this `MultiReader` on 
every search?


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