lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: About muti-Threads in Lucene
Date Tue, 07 Aug 2007 06:57:00 GMT

:          How do you solve the problems when add,update,delete documents
: in muti-threads,use synchronized ?

IndexWriter is thread safe, so there are no problems.  construct one
instance, use it in all of your threads, no need for external
synchronization.


-Hoss


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