How to recover from Solr deleted index files?

前端 未结 4 1205
长发绾君心
长发绾君心 2021-01-07 22:09

When I delete solr\'s index files on disk, (found in /solr/data/index and solr/data/spellchecker), solr throws an exception whenever I try to make

4条回答
  •  广开言路
    2021-01-07 22:48

    Exception FileNotFoundException signals that an attempt to open the file denoted by a specified pathname has failed. So either your index is invalid or corrupted.

    NIOFSDirectory class is used for reading and writing index files. The directory is created at the named location if it does not yet exist.

    So you should probably:

    1. Delete the index directory or restore data from backups.
    2. Restart the server (or at least the reload the config).

提交回复
热议问题