lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: MmapDirectory and IndexReader reuse
Date Thu, 21 Jul 2016 18:18:31 GMT
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.kotal@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message