Hi Uwe,

thanks for the reply.
I see slightly different order in the results, and I was thinking are
docs with the same score and the difference between the two index (one
with "addIndexes" multithreaded and one no) is because of the order of
insert in the merged index; could be this the difference I see?


nicola.


On Thu, 2014-05-22 at 17:49 +0200, Uwe Schindler wrote:
> Hi Nicola,
> 
> Yes, it is thread safe, like all other methods in IndexWriter. In the case of 
> the one taking IndexReaders, Lucene will also do the merging concurrently.
> 
> Say hello to Jo McEntyre! :-)
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
> 
> 
> > -----Original Message-----
> > From: Nicola Buso [mailto:[email protected]]
> > Sent: Thursday, May 22, 2014 5:13 PM
> > To: [email protected]
> > Subject: IndexWriter.addIndexes() multithread correct?
> > 
> > Hi,
> > 
> > I was wondering if it's correct to call the method:
> > IndexWriter.addIndexes(...)
> > 
> > from different threads concurrently.
> > 
> > 
> > nicola.
> > 
> > 
> > ---------------------------------------------------------------------
> > 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]

Reply via email to