lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: How to correctly use SearcherManager#close?
Date Thu, 01 Nov 2012 22:00:11 GMT
Call it when you know you'll no longer need to call .acquire on it
anymore (typically this would be when your webapp is being destroyed).

Really all this does is drop its internal reference to the current searcher.

Any in-flight searches still outstanding will run fine (and they
should call .release, like normal, once they are done, even though
you've already called .close on the SearcherManager)...

Mike McCandless

On Thu, Nov 1, 2012 at 5:27 PM, Michael-O <> wrote:
> Hi folks,
> while I do understand the workflow with this class, I do not understand when to call
close(). The JavaDoc is not crystal clear on that. Am I supposed to call this method after
release() or when my webapp is destroyed?
> Thanks,
> Michael
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message