Table of Contents

Public classSealed KeepLatestCommitPolicy

Namespace
Rowles.LeanLucene.Index.Indexer
Assembly
Rowles.LeanLucene.dll

Keeps only the latest commit, deleting all older segments_N and stats_N files.

public sealed class KeepLatestCommitPolicy : IIndexDeletionPolicy
KeepLatestCommitPolicy
Implements

Methods

Public method OnCommit(string, int)

Called after a new commit is written. The implementation should delete any commit files (and their segments) that are no longer needed.

Public method OnCommit(string, int, IReadOnlySet<string>)

Called after a new commit is written, with the set of segment IDs protected by held snapshots.