lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <>
Subject lucene-core-2.2.0.jar broken? CorruptIndexException?
Date Wed, 28 Nov 2007 09:41:34 GMT
I've got a DB of about 20000 pages which I thought I'd update to
Lucene 2.2.  I removed the old index (2.0 based) completely, and
started re-indexing all the documents.  I do this in stages, of about
50 pages at a time, serially, starting a new JVM each time, and reading
in the existing index, then adding to it, optimizing, and exiting.  I
know, really inefficient, and not my long-term plan.

Anyway, while I was doing this, I get the following exception in the
optimize step:

org.apache.lucene.index.CorruptIndexException: docs out of order (3760 <= 4083 )
	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.mergeSegments(
	at org.apache.lucene.index.IndexWriter.optimize(
	at com.parc.uplib.indexing.LuceneIndexing.update(
	at com.parc.uplib.indexing.LuceneIndexing.main(

This is OS X 10.4.11, PPC, Java 1.5, with 

Do I need to go back to 2.0?


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

View raw message