You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2004/10/27 21:25:30 UTC

DO NOT REPLY [Bug 31926] New: - Exception getting terms from IndexReader

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=31926>.
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=31926

Exception getting terms from IndexReader

           Summary: Exception getting terms from IndexReader
           Product: Lucene
           Version: 1.4
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Index
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: ephemeris.lappis@tiscali.fr


I'm evaluating Lucene with simple applications that use files.
I'm trying the different classes to discover all Lucene can do for me...
In the class IndexReader, the method 'terms()' lists all the terms present in 
the index. In my first tests, using index with few files (~500), all work fine. 
But latter, using a bigger index (~20000 files), the TermEnum throws an 
exception after 106 terms have been returned. Here's the stack trace :

java.io.IOException: Le fichier spécifié est introuvable
        at java.io.RandomAccessFile.seek(Native Method)
        at org.apache.lucene.store.FSInputStream.readInternal
(FSDirectory.java:415)
        at org.apache.lucene.store.InputStream.readBytes(InputStream.java:61)
        at org.apache.lucene.index.CompoundFileReader$CSInputStream.readInternal
(CompoundFileReader.java:222)
        at org.apache.lucene.store.InputStream.refill(InputStream.java:158)
        at org.apache.lucene.store.InputStream.readByte(InputStream.java:43)
        at org.apache.lucene.store.InputStream.readVInt(InputStream.java:83)
        at org.apache.lucene.index.SegmentTermEnum.readTerm
(SegmentTermEnum.java:149)
        at org.apache.lucene.index.SegmentTermEnum.next
(SegmentTermEnum.java:115)
        at my.lucene.cli.TermsCommand.execute(TermsCommand.java:36)
        at net.moon.cli.command.internal.DefaultRuntimeContext.executeCommand
(DefaultRuntimeContext.java:171)
        at net.moon.cli.command.standard.ShellCommand.processLine
(ShellCommand.java:38)
        at net.moon.cli.command.standard.AbstractStreamingCommand.execute
(AbstractStreamingCommand.java:34)
        at net.moon.cli.command.internal.DefaultRuntimeContext.executeCommand
(DefaultRuntimeContext.java:171)
        at net.moon.cli.Shell.start(Shell.java:27)
        at my.lucene.Main.main(Main.java:13)

For those that don't understand french, the IO exception states a file is not 
found...
I've tried rebuilding the index, and then optimizing it to make it use a single 
file, but the same error occurs...
Thanks for ideas... or a patch if needed !

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org