lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <emailg...@yahoo.co.in>
Subject Re: IndexWriter
Date Wed, 01 Jul 2009 10:39:21 GMT
Yes. Single IndexWriter could be maintained in a App and it could be closed when the App is
shutdown. 

Regards
Ganesh

----- Original Message ----- 
From: "Amin Mohammed-Coleman" <aminmc@gmail.com>
To: <java-user@lucene.apache.org>
Sent: Wednesday, July 01, 2009 1:27 PM
Subject: IndexWriter


> Hi
> 
> This question has probably been asked before so apologies for asking it
> again.  Just to confirm that it is ok to use a single index writer in a web
> application and only close that single instance on application shutdown?  As
> the indexwriter is thread safe there is no need for any external
> synchronisation.  Am I correct in thinking this?
> 
> I have configured via spring a single index writer which is used in the
> application and I use the same one for adding and updating documents.  This
> index writer is closed when the spring application context shutsdown.
> 
> 
> Cheers
> Amin
>
Send instant messages to your online friends http://in.messenger.yahoo.com 

---------------------------------------------------------------------
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