IIndexDeletionPolicy
- Namespace
- Rowles.LeanLucene.Index.Indexer
- Assembly
- Rowles.LeanLucene.dll
Controls which old commit files and their referenced segments are pruned after a new commit.
public interface IIndexDeletionPolicy
Methods
OnCommit(string, int)
Called after a new commit is written. The implementation should delete any commit files (and their segments) that are no longer needed.
OnCommit(string, int, IReadOnlySet<string>)
Called after a new commit is written, with the set of segment IDs protected by held snapshots.