Uses of Class
org.apache.lucene.index.IndexDeletionPolicy
-
Uses of IndexDeletionPolicy in org.apache.lucene.index
Modifier and TypeClassDescriptionfinal class
ThisIndexDeletionPolicy
implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done.final class
AnIndexDeletionPolicy
which keeps all index commits around, never deleting them.class
ASnapshotDeletionPolicy
which adds a persistence layer so that snapshots can be maintained across the life of an application.class
AnIndexDeletionPolicy
that wraps any otherIndexDeletionPolicy
and adds the ability to hold and later release snapshots of an index.Modifier and TypeFieldDescriptionprotected IndexDeletionPolicy
LiveIndexWriterConfig.delPolicy
IndexDeletionPolicy
controlling when commit points are deleted.static final IndexDeletionPolicy
NoDeletionPolicy.INSTANCE
The single instance of this class.Modifier and TypeMethodDescriptionIndexWriterConfig.getIndexDeletionPolicy()
LiveIndexWriterConfig.getIndexDeletionPolicy()
Returns theIndexDeletionPolicy
specified inIndexWriterConfig.setIndexDeletionPolicy(IndexDeletionPolicy)
or the defaultKeepOnlyLastCommitDeletionPolicy
/Modifier and TypeMethodDescriptionIndexWriterConfig.setIndexDeletionPolicy
(IndexDeletionPolicy delPolicy) Expert: allows an optionalIndexDeletionPolicy
implementation to be specified.ModifierConstructorDescriptionPersistentSnapshotDeletionPolicy
(IndexDeletionPolicy primary, Directory dir) PersistentSnapshotDeletionPolicy
wraps anotherIndexDeletionPolicy
to enable flexible snapshotting, passingIndexWriterConfig.OpenMode.CREATE_OR_APPEND
by default.PersistentSnapshotDeletionPolicy
(IndexDeletionPolicy primary, Directory dir, IndexWriterConfig.OpenMode mode) PersistentSnapshotDeletionPolicy
wraps anotherIndexDeletionPolicy
to enable flexible snapshotting.Sole constructor, taking the incomingIndexDeletionPolicy
to wrap.