Class KeepOnlyLastCommitDeletionPolicy
This IndexDeletionPolicy implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done. This is the default deletion policy.
Inheritance
System.Object
KeepOnlyLastCommitDeletionPolicy
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public sealed class KeepOnlyLastCommitDeletionPolicy : object, IndexDeletionPolicy
Methods
Name | Description |
---|---|
OnCommit<T>(IList<T>) | Deletes all commits except the most recent one. |
OnInit<T>(IList<T>) | Deletes all commits except the most recent one. |