You have probably figured it out by now, but my suggestion would be to use
SearcherManager the way it is documented for maintaining a searcher backed
by an NRT reader.
On Sun, Aug 26, 2012 at 2:03 PM, Mossaab Bagdouri wrote:
> Thanks for the quick reply.
>
> I've changed my code to the following
Thanks for the quick reply.
I've changed my code to the following. The problem now is that the
MultiReader doesn't seem to get closed. In fact, the number of open files
(returned by "lsof | grep index/ | wc -l") keeps increasing whenever the
IndexWriter adds new documents until the webapp crashes.
1. getRefCount()
2. No
Mossaab Bagdouri schrieb:
>Hi,
>
>I've just migrated my webapp from Lucene 3.6 to 4.0-BETA. My 2 indexes
>are
>updated every couple of minutes by a batch. The webapp searcher needs
>to
>get refreshed whenever this happens. In 3.6, I was doing it this way:
>
>private Inde