lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: managing docids for ParallelReader
Date Fri, 03 Jun 2005 16:37:01 GMT
Sebastian Marius Kirsch wrote:
> I took up your suggestion to use a ParallelReader for adding more
> fields to existing documents. I now have two indexes with the same
> number of documents, but different fields.

Does search work using the ParalleReader?

> One field is duplicated
> (the id field.)

Why is this duplicated?  Just curious.  That shouldn't cause a problem.

> I wrote a small class to merge those two indexes into one index; it is
> attached to this message. However, when I run this class in order to
> merge the two indexes, I get a NullPointerException:

Why are you merging?  Why not just search using the ParallelReader? 
Again, just curious.  This should work.

> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.lucene.index.ParallelReader$
> 	at org.apache.lucene.index.ParallelReader$
> 	at org.apache.lucene.index.SegmentMerger.appendPostings(
> 	at org.apache.lucene.index.SegmentMerger.mergeTermInfo(
> 	at org.apache.lucene.index.SegmentMerger.mergeTermInfos(
> 	at org.apache.lucene.index.SegmentMerger.mergeTerms(
> 	at org.apache.lucene.index.SegmentMerger.merge(
> 	at org.apache.lucene.index.IndexWriter.addIndexes(
> 	at org.sebastiankirsch.thesis.util.ParallelIndexMergeTool.main(

This could be a bug.  I have not tested merging with a ParallelReader. 
Can you please try to adding a test case to TestParallelReader that 
demonstrates this?



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

View raw message