lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mindaugas Žakšauskas" <>
Subject Re: Lucene and JSP
Date Sat, 08 Nov 2008 10:53:43 GMT
> How do I keep only one IndexSearcher open for all the searches on my
> website?

In order to keep your IndexSearcher open, simply do not close it and
serve the reference to the same object instance for different HTTP
request clients.

This can easily be achieved using Singleton wrapper around
IndexSearcher which would be sitting somewhere in your backend server


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

View raw message