lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mindaugas Žakšauskas" <min...@gmail.com>
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
API.

m.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message