title: How to recover from Solr deleted index files?
body: <p>When I delete solr's index files on disk, (found in <code>/solr/data/index</code> and <code>solr/data/spellchecker</code>), solr throws an exception whenever I try to make a request to it:</p>
  
  <blockquote>
    <p>java.lang.RuntimeException: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/…/solr/data/index: </p>
  </blockquote>
  
  <p>The only way I've found to recover from this is to “seed” the <code>data</code> directory with the index files from elsewhere. It doesn't really matter where it seems. Once I do this, I can run a query to reload the schema and regenerate the index. Is this how this is supposed to work? It seems like there should be a way to tell solr to regenerate those files from scratch. Maybe I'm just mistaken in my assumption that these files are not part of the application itself (kind of implied by the name “data”)?</p>