java.lang.Object | |
↳ | org.apache.lucene.index.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deletes all commits except the most recent one.
| |||||||||||
Deletes all commits except the most recent one.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.lucene.index.IndexDeletionPolicy
|
Deletes all commits except the most recent one.
commits | List of IndexCommit ,
sorted by age (the 0th one is the oldest commit).
|
---|
Deletes all commits except the most recent one.
commits | List of current
point-in-time commits ,
sorted by age (the 0th one is the oldest commit).
|
---|