Class SolrDeletionPolicy

  • All Implemented Interfaces:
    NamedListInitializedPlugin

    public class SolrDeletionPolicy
    extends org.apache.lucene.index.IndexDeletionPolicy
    implements NamedListInitializedPlugin
    Standard Solr deletion policy that allows reserving index commit points for certain amounts of time to support features such as index replication or snapshooting directly out of a live index directory.
    See Also:
    IndexDeletionPolicy
    • Constructor Detail

      • SolrDeletionPolicy

        public SolrDeletionPolicy()
    • Method Detail

      • onInit

        public void onInit​(List<? extends org.apache.lucene.index.IndexCommit> commits)
                    throws IOException
        Internal use for Lucene... do not explicitly call.
        Specified by:
        onInit in class org.apache.lucene.index.IndexDeletionPolicy
        Throws:
        IOException
      • onCommit

        public void onCommit​(List<? extends org.apache.lucene.index.IndexCommit> commits)
                      throws IOException
        Internal use for Lucene... do not explicitly call.
        Specified by:
        onCommit in class org.apache.lucene.index.IndexDeletionPolicy
        Throws:
        IOException
      • getMaxCommitAge

        public String getMaxCommitAge()
      • getMaxCommitsToKeep

        public int getMaxCommitsToKeep()
      • getMaxOptimizedCommitsToKeep

        public int getMaxOptimizedCommitsToKeep()
      • setMaxCommitsToKeep

        public void setMaxCommitsToKeep​(int maxCommitsToKeep)
      • setMaxOptimizedCommitsToKeep

        public void setMaxOptimizedCommitsToKeep​(int maxOptimizedCommitsToKeep)