dcsimg
Lucene "term out of order" error?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sam_Bayer
Posted On:   Thursday, January 4, 2007 05:36 PM

Hi - I have an index which is suddenly reporting "term out of order". I've hit this error both while adding a document and while optimizing. Here's a representative backtrace: java.io.IOException: term out of order (":umfang".compareTo("body:ume") <= 0) at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:95) at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:305) at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:272) at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:236) at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:89) at org.apache   More>>

Hi -

I have an index which is suddenly reporting "term out of order". I've hit this error both while adding a document and while optimizing. Here's a representative backtrace:

			
java.io.IOException: term out of order (":umfang".compareTo("body:ume") <= 0)
at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:95)
at org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:305)
at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:272)
at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:236)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:89)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:709)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:686)
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:543)


Note the empty field name for the offending tag. This also appears in the other case I've encountered, and it appears not to be common (or perhaps even correct) for the field to be empty.

Is my index hopelessly corrupted?

Thanks in advance.

   <<Less
About | Sitemap | Contact