
July 3rd, 2008, 10:19 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Deleting first IndexCommit
For I need to be able to delete the latest commit, however currently
using IndexReader.open(final IndexCommit commit, IndexDeletionPolicy
deletionPolicy) I need to open the IndexReader that represents the latest
commit, presumably in IndexDeletionPolicy.onInit delete the IndexCommit,
then close the IndexReader and start over. Wouldn't this be cleaner to call
IndexReader.listCommits and then delete the first one (assuming they are in
generation descending order).
|