I need to reach the Lucene Index (built by crawling many webpages using the following), but it was shown above Error giving:
/ P>
java.io.FileNotFoundException: org.apache.lucene.store.FSDirectory@/home/< Path: There is no file * found in files: at org.apache.lucene.index. Find Segment Infos $ org.apache.lucene.index.IndexReader.open (IndexReader.java:185) at org.apache.lucene.index.IndexReader.open (IndexReader.java:148), locate the file.Run (Segment infos.java Article 16) Generener.generateDict (Dictionary Generator.java.2) Dictionary on Generator.main (Dictionary. Generator.java:56)
I googled but matching given requirements requirements Were not there. The fact is that the files are being displayed (path) probably means that the directory is not empty. Thank you
Actually, error message says that Lucene does not have the appropriate file in the index directory I recommend checking the following:
- Verify the path of the index that fits that which you think should be.
- Is the versions of Nach and Lucene used? It can be from a different version.
- Is there a permissions problem? Can you read the file in the directory?
- See Using Index View If you can not do this, then there is probably some corruption in the index.
If they do not help at all, please post the indexing part of the code.
Comments
Post a Comment