You can use a queue to let IndexWriter do its work asychronize -----Original Message----- From: Michael Prichard [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 9:10 PM To: java-user@lucene.apache.org Subject: Re: Threading Indexing Processes : Can we write concurrently to Index?
So I should create a singe IndexWriter but allow multiple threads to use it? On Oct 30, 2007, at 12:49 AM, Karl Wettin wrote: > > 30 okt 2007 kl. 05.08 skrev Michael Prichard: > >> If I multithread an indexing process can two or more processes write >> to the same index? > > Multiple threads can add documents to the same writer. Multiple > threads can usually not write using each a writer. > > > -- > karl > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]