Interface IMergePolicySettings
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IMergePolicySettings
Properties
| Edit this page View SourceExpungeDeletesAllowed
When expungeDeletes is called, we only merge away a segment if its delete percentage is over this threshold. Default is 10.
Declaration
int? ExpungeDeletesAllowed { get; set; }
Property Value
Type | Description |
---|---|
int? |
FloorSegment
Segments smaller than this are "rounded up" to this size, i.e. treated as equal (floor) size for merge selection. This is to prevent frequent flushing of tiny segments, thus preventing a long tail in the index. Default is 2mb.
Declaration
string FloorSegment { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxMergeAtOnce
Maximum number of segments to be merged at a time during "normal" merging. Default is 10.
Declaration
int? MaxMergeAtOnce { get; set; }
Property Value
Type | Description |
---|---|
int? |
MaxMergeAtOnceExplicit
Maximum number of segments to be merged at a time, during optimize or expungeDeletes. Default is 30.
Declaration
int? MaxMergeAtOnceExplicit { get; set; }
Property Value
Type | Description |
---|---|
int? |
MaxMergedSegment
Maximum sized segment to produce during normal merging (not explicit optimize). This setting is approximate: the estimate of the merged segment size is made by summing sizes of to-be-merged segments (compensating for percent deleted docs). Default is 5gb.
Declaration
string MaxMergedSegment { get; set; }
Property Value
Type | Description |
---|---|
string |
ReclaimDeletesWeight
Controls how aggressively merges that reclaim more deletions are favored. Higher values favor selecting merges that reclaim deletions. A value of 0.0 means deletions don’t impact merge selection. Defaults to 2.0
Declaration
double? ReclaimDeletesWeight { get; set; }
Property Value
Type | Description |
---|---|
double? |
SegmentsPerTier
Sets the allowed number of segments per tier. Smaller values mean more merging but fewer segments. Default is 10. Note, this value needs to be >= than the max_merge_at_once otherwise you’ll force too many merges to occur.
Declaration
int? SegmentsPerTier { get; set; }
Property Value
Type | Description |
---|---|
int? |