Domanda

In continuation of dbpedia spotlight dataset, I followed the instructions for updating my dataset but got the following error:

INFO 2012-06-19 11:58:04,300 main [MergedOccurrencesContextSearcher] - Using index at: org.apache.lucene.store.MMapDirectory@/home/user_name/new/spotlight/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@671381e7
Exception in thread "main" java.io.FileNotFoundException: /home/user_name/new/spotlight/index/segments_bp (No such file or directory)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
    at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:219)
    at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:345)
    at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:265)
    at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:76)
    at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:709)
    at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:72)
    at org.apache.lucene.index.IndexReader.open(IndexReader.java:273)
    at org.dbpedia.spotlight.lucene.search.BaseSearcher.<init>(BaseSearcher.java:67)
    at org.dbpedia.spotlight.lucene.search.MergedOccurrencesContextSearcher.<init>(MergedOccurrencesContextSearcher.java:64)
    at org.dbpedia.spotlight.model.SpotlightFactory.<init>(SpotlightFactory.scala:71)
    at org.dbpedia.spotlight.web.rest.Server.main(Server.java:86)

I had been able to successfully use the spotter dictionary but couldn't use the index files.

Can you please help me?

È stato utile?

Soluzione

Hard to help you without sufficient information. The message complains that a file is not there. Is the file there? Is the directory there?

Please paste the result of the command ls -lah /home/user_name/new/spotlight/index

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top