Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创建索引报错 #48

Open
muyannian opened this issue Nov 6, 2013 · 1 comment
Open

创建索引报错 #48

muyannian opened this issue Nov 6, 2013 · 1 comment
Labels

Comments

@muyannian
Copy link
Contributor

Exception in thread "Lucene Merge Thread #4" org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.index.CorruptIndexException: docs out of order (515 <= 569 ) (out: org.apache.lucene.store.RAMOutputStream@13c93f78)
at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:517)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482)
Caused by: org.apache.lucene.index.CorruptIndexException: docs out of order (515 <= 569 ) (out: org.apache.lucene.store.RAMOutputStream@13c93f78)
at org.apache.lucene.index.FormatPostingsDocsWriter.addDoc(FormatPostingsDocsWriter.java:99)
at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:614)
at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:546)
at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:478)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:114)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4297)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3942)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:388)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:456)
Exception in thread "Lucene Merge Thread #5" org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.index.CorruptIndexException: docs out of order (304 <= 339 ) (out: org.apache.lucene.store.RAMOutputStream@49c03579)
at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:517)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482)
Caused by: org.apache.lucene.index.CorruptIndexException: docs out of order (304 <= 339 ) (out: org.apache.lucene.store.RAMOutputStream@49c03579)
at org.apache.lucene.index.FormatPostingsDocsWriter.addDoc(FormatPostingsDocsWriter.java:99)
at org.apache.lucene.index.SegmentMerger.appendPostings(SegmentMerger.java:614)
at org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:546)
at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:478)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:114)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4297)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3942)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:388)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:456)
Exception in thread "Lucene Merge Thread #3" org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.index.CorruptIndexException: docs out of order (102 <= 155 ) (out: org.apache.lucene.store.RAMOutputStream@40542fa7)
at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:517)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(Concurren

@muyannian
Copy link
Contributor Author

通过查看日志发现 base += reader.numDocs(); 返回0,实际上是有文档的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant