This class implements a {@link MergePolicy} that tries to merge segments into levels of exponentially increasing size, where each level has fewer segments than the value of the merge factor. Whenever extra segments (beyond the merge factor upper bound) are encountered, all segments within the level are merged. You can get or set the merge factor using {@link #GetMergeFactor()} and {@link #SetMergeFactor(int)} respectively.

This class is abstract and requires a subclass to define the {@link #size} method which specifies how a segment's size is determined. {@link LogDocMergePolicy} is one subclass that measures size by document count in the segment. {@link LogByteSizeMergePolicy} is another subclass that measures size as the total byte size of the file(s) for the segment.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public abstract class LogMergePolicy : MergePolicy
Visual Basic
Public MustInherit Class LogMergePolicy _
	Inherits MergePolicy
Visual C++
public ref class LogMergePolicy abstract : public MergePolicy

Inheritance Hierarchy

See Also