IMergePolicy
- Namespace
- Rowles.LeanCorpus.Index.Indexer
- Assembly
- Rowles.LeanCorpus.dll
Controls which segments are selected for merging during indexing.
public interface IMergePolicy
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.