我需要访问lucene索引(通过使用Nutch爬网几个网页创建),但是它给出了上面显示的错误:
java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.FSDirectory@/home/<path>: files: at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:516) at org.apache.lucene.index.IndexReader.open(IndexReader.java:185) at org.apache.lucene.index.IndexReader.open(IndexReader.java:148) at DictionaryGenerator.generateDict(DictionaryGenerator.java:24) at DictionaryGenerator.main(DictionaryGenerator.java:56)