Cannot delete

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
| Cannot delete

When attempting to re-create my index, I receive the following error: Cannot delete C:\CatalogCollections\Live\_2s.cfs
 at org.apache.lucene.index.IndexWriter.<init>(
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?
I'm running:
Windows XP
Tomcat 5.5.9
JDK 1.5.0_04
Lucene 2.0 / 1.9.1/ 1.4.3
Any help greatly appreciated.