Can't you pass your own SearcherFactory to SearcherManager to do that? Mike McCandless
http://blog.mikemccandless.com On Thu, Jul 21, 2016 at 1:34 PM, Vladimir Kotal <vladimir.ko...@oracle.com> wrote: > On 07/18/16 05:52 PM, Uwe Schindler wrote: > >> Hi, >> >> Have a separate searcher manager for every directory. On every incoming >> search request, fetch the actual DirectoryReaders from the searcher >> managers and build a MultiReader from it. This costs nothing, as >> MultiReader is just a thin wrapper where no caching is involved. On top of >> this MultiReader create an IndexSearcher (which is also cheap). >> > > SearcherManeger's acquire() returns IndexSearcher. The trouble is that we > need to have the IndexSearcher constructed with certain ExecutorService and > there does not seem to be a way how to do that with SearcherManager. > > I wonder if SearcherManager can be extended to allow this. Otherwise we > would have to use ReferenceManager and reimplement the functionality found > in SearcherManager which I'd like to avoid. > > > > v. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >