RE: MmapDirectory and IndexReader reuse

2016-07-18 Thread Uwe Schindler
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 MultiR

Re: MmapDirectory and IndexReader reuse

2016-07-18 Thread Vladimir Kotal
On 07/15/16 12:00 PM, Uwe Schindler wrote: Hi, You should keep the IndexReader open for the whole time! Otherwise there are more bottlenecks and slowdowns. If you are updating the Index, you should use SearcherManager that reopens the index reader accordingly. After updating the index you sho