lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin <>
Subject Problems with homebrew ParallelWriter
Date Wed, 23 Jun 2010 22:44:00 GMT
Hi all,

We've been waiting for LUCENE-1879 and LUCENE-2425 and have written our own ParallelWriter
class in the meantime.  Apparently our indexes are falling out of sync (I suspect my colleague
is seeing error messages come from ParallelReader stating the the number of documents must
be the same).

Here's a code snippet from our ParallelWriter which extends Object:

    writer1 = new IndexWriter(dir, analyzer, 
new IndexWriter.MaxFieldLength(MFL));
writer1.setMergePolicy(new LogDocMergePolicy());
writer1.setMergeScheduler(new SerialMergeScheduler());

My colleague suspects that merging or flushing is being triggered on something other than
the doc count which leads to the writers' different behaviors.  I suspect our next step is
to scatter breakpoints around Lucene source (we've got trunk@926791 to take advantage of latest
NRT readers).

Does anyone have ideas on how the indexes would get out of sync?  Process close, committing,
optimizing,... they all should work okay?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message