Hi,
   I use lucene 3.4.0 in a search project,but encounter a problem and i
don't know how to resolve.
I index and it run well,but one week or two(it appear two times,first run
one week,second two),it can't be searched,and the trace at below.
Thank you!

java.io.IOException: read past EOF
        at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:207)
        at
org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:39)
        at org.apache.lucene.store.DataInput.readVInt(DataInput.java:105)
        at
org.apache.lucene.store.BufferedIndexInput.readVInt(BufferedIndexInput.java:181)
        at org.apache.lucene.index.TermBuffer.read(TermBuffer.java:64)
        at
org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:131)
        at
org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:166)
        at
org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:274)
        at
org.apache.lucene.index.TermInfosReader.terms(TermInfosReader.java:346)
        at
org.apache.lucene.index.SegmentReader.terms(SegmentReader.java:462)
        at
org.apache.lucene.index.DirectoryReader$MultiTermEnum.<init>(DirectoryReader.java:1091)
        at
org.apache.lucene.index.DirectoryReader.terms(DirectoryReader.java:691)
        at
org.apache.lucene.search.PrefixTermEnum.<init>(PrefixTermEnum.java:41)
        at org.apache.lucene.search.PrefixQuery.getEnum(PrefixQuery.java:45)
        at
org.apache.lucene.search.TermCollectingRewrite.collectTerms(TermCollectingRewrite.java:34)
        at
org.apache.lucene.search.ConstantScoreAutoRewrite.rewrite(ConstantScoreAutoRewrite.java:87)
        at
org.apache.lucene.search.MultiTermQuery$ConstantScoreAutoRewrite.rewrite(MultiTermQuery.java:215)
        at
org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:296)
        at
org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:378)
        at
org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:589)
        at
org.apache.lucene.search.Searcher.createNormalizedWeight(Searcher.java:167)
        at
org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:661)
        at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:356)


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Why-read-past-EOF-tp3639401p3639401.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to