
NoMergePolicy
- Namespace
- Rowles.LeanCorpus.Index.Indexer
- Assembly
- Rowles.LeanCorpus.dll
Merge policy that never triggers automatic merges. Use for bulk-load-then-merge-once workflows where all merging is performed manually via Compact() or ForceMerge(int).
public sealed class NoMergePolicy : IMergePolicy
- Inheritance
-
NoMergePolicy
- Implements
Instance
Singleton instance.
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.