Class LogDocMergePolicy
This is a LogMergePolicy that measures size of a segment as the number of documents (not taking deletions into account).
Implements
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class LogDocMergePolicy : LogMergePolicy, IDisposable
Constructors
LogDocMergePolicy()
Sole constructor, setting all settings to their defaults.
Declaration
public LogDocMergePolicy()
Fields
DEFAULT_MIN_MERGE_DOCS
Default minimum segment size.
Declaration
public static readonly int DEFAULT_MIN_MERGE_DOCS
Field Value
Type | Description |
---|---|
int |
See Also
Properties
MinMergeDocs
Sets the minimum size for the lowest level segments. Any segments below this size are considered to be on the same level (even if they vary drastically in size) and will be merged whenever there are mergeFactor of them. This effectively truncates the "long tail" of small segments that would otherwise be created into a single level. If you set this too large, it could greatly increase the merging cost during indexing (if you flush many small segments).
Declaration
public virtual int MinMergeDocs { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Size(SegmentCommitInfo)
Return the byte size of the provided SegmentCommitInfo, pro-rated by percentage of non-deleted documents is set.
Declaration
protected override long Size(SegmentCommitInfo info)
Parameters
Type | Name | Description |
---|---|---|
SegmentCommitInfo | info |
Returns
Type | Description |
---|---|
long |