public class SolrDeletionPolicy extends Object implements org.apache.lucene.index.IndexDeletionPolicy, NamedListInitializedPlugin
IndexDeletionPolicy| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SolrDeletionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMaxCommitAge() |
int |
getMaxCommitsToKeep() |
int |
getMaxOptimizedCommitsToKeep() |
void |
init(NamedList args) |
void |
onCommit(List commits)
Internal use for Lucene... do not explicitly call.
|
void |
onInit(List commits)
Internal use for Lucene... do not explicitly call.
|
void |
setMaxCommitsToKeep(int maxCommitsToKeep) |
void |
setMaxOptimizedCommitsToKeep(int maxOptimizedCommitsToKeep) |
public void init(NamedList args)
init in interface NamedListInitializedPluginpublic void onInit(List commits) throws IOException
onInit in interface org.apache.lucene.index.IndexDeletionPolicyIOExceptionpublic void onCommit(List commits) throws IOException
onCommit in interface org.apache.lucene.index.IndexDeletionPolicyIOExceptionpublic String getMaxCommitAge()
public int getMaxCommitsToKeep()
public int getMaxOptimizedCommitsToKeep()
public void setMaxCommitsToKeep(int maxCommitsToKeep)
public void setMaxOptimizedCommitsToKeep(int maxOptimizedCommitsToKeep)