When attempting to re-create my index, I receive the following error:
java.io.IOException: Cannot delete C:\CatalogCollections\Live\_2s.cfs
I can create my index and index data with no problems. If I attempt to
re-create the index before I ever perform a search, the index is
re-created with no exceptions. But once I perform a search and then
attempt to re-create the index, I always receive the IOException.
To re-create the collection I am using:
IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(),
To search the index, I am using:
I do not understand how the search could contribute to the exception I
am seeing. Totally baffled. Any way to determine what "other" process
is using the file mentioned in the exception?
Lucene 2.0 / 1.9.1/ 1.4.3