lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanislav Jordanov <ste...@sirma.bg>
Subject Reviving a dead index
Date Tue, 29 Aug 2006 08:09:47 GMT
What might be the possible reason for an IndexReader failing to open 
properly,
because it can not find a .fnm file that is expected to be there:

java.io.FileNotFoundException: E:\index4\_1j8s.fnm (The system cannot 
find the file specified)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at 
org.apache.lucene.store.FSIndexInput$Descriptor.<init>(FSDirectory.java:425)
    at org.apache.lucene.store.FSIndexInput.<init>(FSDirectory.java:434)
    at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:324)
    at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:56)
    at 
org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:144)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:129)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:110)
    at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:154)
    at org.apache.lucene.store.Lock$With.run(Lock.java:109)
    at org.apache.lucene.index.IndexReader.open(IndexReader.java:143)
    at org.apache.lucene.index.IndexReader.open(IndexReader.java:127)
    at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:42)



The only thing that comes to my mind is that last time the indexing 
process was not shut down properly.
Is there a way to revive the index or everything should be reindexed 
from scratch?


Thanks,
Stanislav


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


Mime
View raw message