Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

IndexWriter

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


aminmc at gmail

Jul 1, 2009, 12:57 AM

Post #1 of 1 (246 views)
Permalink
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

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.