Re: IndexCommit.delete() outside of IndexDeletionPolicy

2012-06-06 Thread Michael McCandless
I think this use case makes sense; such logic (for a distributed / ref counted deletion policy) would make a nice contribution ... it's the "proper" way to delete commits when multiple nodes are in use (vs eg using a timeout deletion policy). You can actually do it today: call IndexWriter.deleteUn

IndexCommit.delete() outside of IndexDeletionPolicy

2012-06-06 Thread Colin Goodheart-Smithe
I was looking at the Lucene API for IndexCommit and noticed that the JavaDoc states that *'Decision that a commit-point should be deleted is taken by the IndexDeletionPolicy in effect and therefore this s