-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.0-ALPHA
-
Component/s: core/index
-
Labels:None
-
Lucene Fields:New
This has come up several times on the user's list.
On Windows, which prevents deletion of still-open files, IndexWriter cannot remove files that are in-use by open IndexReaders. This is fine, and IndexWriter periodically retries the delete, but it doesn't retry very often (only on open, on flushing a new segment, and on committing a merge). So it lacks immediacy.
With this expert method, apps that want faster deletion can call this method.