IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Force merge
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Force merge
editPhases allowed: hot, warm.
Force merges the index into the specified maximum number of segments.
This action makes the index read-only.
To use the forcemerge action in the hot phase, the rollover action must be present.
If no rollover action is configured, ILM will reject the policy.
Options
edit-
max_num_segments -
(Required, integer)
Number of segments to merge to. To fully merge the index, set to
1. -
codec -
(Optional, string) Use the
best_compressioncodec. Valid values:best_compression.
Example
editPUT _ilm/policy/my_policy
{
"policy": {
"phases": {
"warm": {
"actions": {
"forcemerge" : {
"max_num_segments": 1
}
}
}
}
}
}