Re: Reusing a CachingWrapperFilter

2011-08-01 Thread Ian Lea
My guess is that it would depend on the number of docs in the index, how many match, how complex your query is, probably other things. If q is complex the MatchAllDocs variant might be well be quicker but if q is simple I wouldn't like to guess. I'm not sure there is any point in passing the fil

Re: Closing IndexWriter can be very slow on large indexes

2011-08-01 Thread Michael McCandless
On Mon, Aug 1, 2011 at 8:04 AM, Simon Willnauer wrote: > On Mon, Aug 1, 2011 at 12:57 AM, kiwi clive wrote: >> Hi Mike, >> >> The problem was due to close().  A shutdown was calling close() which seems >> to cause lucene to perform a merge. For a busy very large index (with lots >> of deletes a

Re: Closing IndexWriter can be very slow on large indexes

2011-08-01 Thread Simon Willnauer
On Mon, Aug 1, 2011 at 12:57 AM, kiwi clive wrote: > Hi Mike, > > The problem was due to close().  A shutdown was calling close() which seems > to cause lucene to perform a merge. For a busy very large index (with lots of > deletes and updates), the merge process could take a very long time to