Re: incorrect hits when using multiple threads

2010-03-20 Thread Simon Willnauer
YW On Sat, Mar 20, 2010 at 1:22 PM, Ruben Laguna wrote: > Right! > Obviously I didn't get the Collector right. I replaced it with > AllDocCollector from the Lucene in Action 2Ed book and it works as > expected. > Thanks for point me in the right direction. > > On Sat, Mar 20, 2010 at 12:44 PM, Si

Re: incorrect hits when using multiple threads

2010-03-20 Thread Ruben Laguna
Right! Obviously I didn't get the Collector right. I replaced it with AllDocCollector from the Lucene in Action 2Ed book and it works as expected. Thanks for point me in the right direction. On Sat, Mar 20, 2010 at 12:44 PM, Simon Willnauer < simon.willna...@googlemail.com> wrote: > On Sat, Mar

Re: incorrect hits when using multiple threads

2010-03-20 Thread Simon Willnauer
On Sat, Mar 20, 2010 at 11:52 AM, Ruben Laguna wrote: > Hi, > I'm getting incorrect results from IndexSearcher, hopefully somebody can > give me a hand. > > I have a single IndexWriter instance shared by several threads that invoke > addDocument on the IW. I also have another thread that invokes c

incorrect hits when using multiple threads

2010-03-20 Thread Ruben Laguna
Hi, I'm getting incorrect results from IndexSearcher, hopefully somebody can give me a hand. I have a single IndexWriter instance shared by several threads that invoke addDocument on the IW. I also have another thread that invokes commit() periodically (every 10s). Then I have another thread that