How to fix IndexNotFoundException: no segments* file found?

后端 未结 2 1619
北荒
北荒 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 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.

提交回复
热议问题