How to fix IndexNotFoundException: no segments* file found?

后端 未结 2 1614
北荒
北荒 2020-12-10 07:34

I write my own code to index some data files myself. It was all working. Once I modified the schema.xml file, now i get internal server error that i have no ide

相关标签:
2条回答
  • 2020-12-10 07:58

    Exception IndexNotFoundException signals that no index was found in the Directory. Possibly because the directory is empty, however can also indicate an index corruption.

    So you should:

    1. Delete the index directory or restore data from backups.
    2. Restart the server (or at least the reload the config).
    0 讨论(0)
  • 2020-12-10 08:06

    As you can see from your log file Solr/Lucene can't find the segments file within the data directory.

    If you remove the data directory, Solr will recreate a brand new index (empty, of course)automatically on startup. From the error it seems that your data directory is there, but with some file missing. Since I understood that you are willing to reindex everything, you can fix the error just deleting your index directory and then reindex.

    0 讨论(0)
提交回复
热议问题