Class LogDocMergePolicy
This is a LogMergePolicy that measures size of a segment as the number of documents (not taking deletions into account).
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class LogDocMergePolicy : LogMergePolicy
Constructors
| Improve this Doc View SourceLogDocMergePolicy()
Sole constructor, setting all settings to their defaults.
Declaration
public LogDocMergePolicy()
Fields
| Improve this Doc View SourceDEFAULT_MIN_MERGE_DOCS
Default minimum segment size.
Declaration
public static readonly int DEFAULT_MIN_MERGE_DOCS
Field Value
Type | Description |
---|---|
System.Int32 |
See Also
Properties
| Improve this Doc View SourceMinMergeDocs
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 |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSize(SegmentCommitInfo)
Declaration
protected override long Size(SegmentCommitInfo info)
Parameters
Type | Name | Description |
---|---|---|
SegmentCommitInfo | info |
Returns
Type | Description |
---|---|
System.Int64 |