Uses of Class
org.apache.lucene.index.IndexDeletionPolicy
-
Packages that use IndexDeletionPolicy Package Description org.apache.lucene.index Code to maintain and access indices. -
-
Uses of IndexDeletionPolicy in org.apache.lucene.index
Subclasses of IndexDeletionPolicy in org.apache.lucene.index Modifier and Type Class Description class
KeepOnlyLastCommitDeletionPolicy
ThisIndexDeletionPolicy
implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done.class
NoDeletionPolicy
AnIndexDeletionPolicy
which keeps all index commits around, never deleting them.class
PersistentSnapshotDeletionPolicy
ASnapshotDeletionPolicy
which adds a persistence layer so that snapshots can be maintained across the life of an application.class
SnapshotDeletionPolicy
AnIndexDeletionPolicy
that wraps any otherIndexDeletionPolicy
and adds the ability to hold and later release snapshots of an index.Fields in org.apache.lucene.index declared as IndexDeletionPolicy Modifier and Type Field Description protected IndexDeletionPolicy
LiveIndexWriterConfig. delPolicy
IndexDeletionPolicy
controlling when commit points are deleted.static IndexDeletionPolicy
NoDeletionPolicy. INSTANCE
The single instance of this class.Methods in org.apache.lucene.index that return IndexDeletionPolicy Modifier and Type Method Description IndexDeletionPolicy
IndexDeletionPolicy. clone()
IndexDeletionPolicy
NoDeletionPolicy. clone()
IndexDeletionPolicy
SnapshotDeletionPolicy. clone()
IndexDeletionPolicy
IndexWriterConfig. getIndexDeletionPolicy()
IndexDeletionPolicy
LiveIndexWriterConfig. getIndexDeletionPolicy()
Returns theIndexDeletionPolicy
specified inIndexWriterConfig.setIndexDeletionPolicy(IndexDeletionPolicy)
or the defaultKeepOnlyLastCommitDeletionPolicy
/Methods in org.apache.lucene.index with parameters of type IndexDeletionPolicy Modifier and Type Method Description IndexWriterConfig
IndexWriterConfig. setIndexDeletionPolicy(IndexDeletionPolicy delPolicy)
Expert: allows an optionalIndexDeletionPolicy
implementation to be specified.Constructors in org.apache.lucene.index with parameters of type IndexDeletionPolicy Constructor Description PersistentSnapshotDeletionPolicy(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.SnapshotDeletionPolicy(IndexDeletionPolicy primary)
Sole constructor, taking the incomingIndexDeletionPolicy
to wrap.
-