Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class 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.

    Inheritance
    System.Object
    IndexDeletionPolicy
    KeepOnlyLastCommitDeletionPolicy
    Inherited Members
    IndexDeletionPolicy.Clone()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class KeepOnlyLastCommitDeletionPolicy : IndexDeletionPolicy

    Constructors

    | Improve this Doc View Source

    KeepOnlyLastCommitDeletionPolicy()

    Sole constructor.

    Declaration
    public KeepOnlyLastCommitDeletionPolicy()

    Methods

    | Improve this Doc View Source

    OnCommit<T>(IList<T>)

    Deletes all commits except the most recent one.

    Declaration
    public override void OnCommit<T>(IList<T> commits)
        where T : IndexCommit
    Parameters
    Type Name Description
    System.Collections.Generic.IList<T> commits
    Type Parameters
    Name Description
    T
    Overrides
    Lucene.Net.Index.IndexDeletionPolicy.OnCommit<T>(System.Collections.Generic.IList<T>)
    | Improve this Doc View Source

    OnInit<T>(IList<T>)

    Deletes all commits except the most recent one.

    Declaration
    public override void OnInit<T>(IList<T> commits)
        where T : IndexCommit
    Parameters
    Type Name Description
    System.Collections.Generic.IList<T> commits
    Type Parameters
    Name Description
    T
    Overrides
    Lucene.Net.Index.IndexDeletionPolicy.OnInit<T>(System.Collections.Generic.IList<T>)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.