For a list of all members of this type, see IndexDeletionPolicy Members.
Type | Description |
---|---|
KeepOnlyLastCommitDeletionPolicy | 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. |
SnapshotDeletionPolicy | A {@link IndexDeletionPolicy} that wraps around any other {@link IndexDeletionPolicy} and adds the ability to hold and later release a single "snapshot" of an index. While the snapshot is held, the {@link IndexWriter} will not remove any files associated with it even if the index is otherwise being actively, arbitrarily changed. Because we wrap another arbitrary {@link IndexDeletionPolicy}, this gives you the freedom to continue using whatever {@link IndexDeletionPolicy} you would normally want to use with your index. Note that you can re-use a single instance of SnapshotDeletionPolicy across multiple writers as long as they are against the same index Directory. Any snapshot held when a writer is closed will "survive" when the next writer is opened. WARNING: This API is new and experimental and may suddnely changendex. |
Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll)
IndexDeletionPolicy Members | Lucene.Net.Index Namespace