DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27799>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27799

java.lang.IndexOutOfBoundsException caused by skipTo() method

           Summary: java.lang.IndexOutOfBoundsException caused by skipTo()
                    method
           Product: Lucene
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Search
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Searching for the following query on an index made with the last version of
lucene (1.4RC1) yields a java.lang.IndexOutOfBoundsException. 

Query : titre:"asia pacific economic co operation forum"

I'll join a test program that creates that query and uses it on an index passed
as argument (ex: Tester D:\myindex)

The index (148535.2 kb zipped) can be downloaded from
http://loti.lingway.com/lucene/lucenebugindex.zip


Trace : 
java.lang.IndexOutOfBoundsException
        at java.io.RandomAccessFile.readBytes(Native Method)
        at java.io.RandomAccessFile.read(RandomAccessFile.java:307)
        at org.apache.lucene.store.FSInputStream.readInternal(FSDirectory.java:4
48)
        at org.apache.lucene.store.InputStream.refill(InputStream.java:196)
        at org.apache.lucene.store.InputStream.readByte(InputStream.java:81)
        at org.apache.lucene.store.InputStream.readVInt(InputStream.java:121)
        at org.apache.lucene.index.SegmentTermPositions.next(SegmentTermPosition
s.java:97)
        at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:2
25)
        at org.apache.lucene.search.PhrasePositions.skipTo(PhrasePositions.java:
85)
        at org.apache.lucene.search.PhraseScorer.next(PhraseScorer.java:107)
        at org.apache.lucene.search.Scorer.score(Scorer.java:75)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:136)

        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:102)
        at org.apache.lucene.search.Hits.<init>(Hits.java:81)
        at org.apache.lucene.search.Searcher.search(Searcher.java:71)
        at org.apache.lucene.search.Searcher.search(Searcher.java:65)
        at Tester.main(Tester.java:46)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to