Class MergePolicy
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Decides when a writer merges segments in the background, after commits. Set it with MergePolicy. It isn't saved with the index: each writer uses its own.
public abstract class MergePolicy
- Inheritance
-
MergePolicy
- Derived
- Inherited Members
Remarks
Each commit adds at least one segment. Searches visit every segment, so merging keeps them fast; merging also drops deleted documents. For an index that's built once and then only read, ForceMerge(int) merges everything at the end instead.
Properties
- Default
Tantivy's default: a LogMergePolicy with default settings.
- None
Never merges in the background. Segments are only merged by ForceMerge(int).