This {@link 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.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public sealed class KeepOnlyLastCommitDeletionPolicy : IndexDeletionPolicy
Visual Basic
Public NotInheritable Class KeepOnlyLastCommitDeletionPolicy _
	Implements IndexDeletionPolicy
Visual C++
public ref class KeepOnlyLastCommitDeletionPolicy sealed : IndexDeletionPolicy

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Index..::..KeepOnlyLastCommitDeletionPolicy

See Also