-Solr 3x segments file and deleting index
Burton-West, Tom 2010-12-01, 17:12
If I want to delete an entire index and start over, in previous versions of Solr, you could stop Solr, delete all files in the index directory and restart Solr. Solr would then create empty segments files and you could start indexing. In Solr 3x if I delete all the files in the index directory I get a large stack trace with this error:
org.apache.lucene.index.IndexNotFoundException: no segments* file found
As a workaround, whenever I delete an index (by deleting all files in the index directory), I copy the segments files that come with the Solr example to the index directory and then restart Solr.
Is this a feature or a bug? What is the rationale?
Shawn Heisey 2010-12-01, 17:45
Chris Hostetter 2010-12-10, 00:07