Section navigation

Public interface IMergePolicy

Namespace
Rowles.LeanCorpus.Index.Indexer
Assembly
Rowles.LeanCorpus.dll

Controls which segments are selected for merging during indexing.

public interface IMergePolicy

Public method FindMerges(IReadOnlyList<SegmentInfo>, IReadOnlySet<string>)

Returns the segments that should be merged from the given list. Returns an empty list if no merge is needed. The caller is responsible for executing the merge and replacing the returned segments with the merged result.