younifyd
Menu

Forcemerge (POST /{index}/_forcemerge)

Forcemerge

POST/{index}/_forcemerge

Use it in a workflow

  1. Add a step and choose the OpenSearch connector.
  2. Pick the Forcemerge (POST /{index}/_forcemerge) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{forcemergePostIndexForcemerge.response.data}}.

Request

Path parameters

indexoneOfrequired

A comma-separated list of index names; use `_all` or empty string to perform the operation on all indexes

Query parameters

allow_no_indicesboolean

Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes `_all` string or when no indexes have been specified)

expand_wildcardsoneOf

Whether to expand wildcard expression to concrete indexes that are open, closed or both.

flushboolean

Specify whether the index should be flushed after performing the operation.

Default true

ignore_unavailableboolean

Whether specified concrete indexes should be ignored when unavailable (missing or closed)

max_num_segmentsinteger (int64)

The number of larger segments into which smaller segments are merged. Set this parameter to 1 to merge all segments into one segment. The default behavior is to perform the merge as necessary.

only_expunge_deletesboolean

Specify whether the operation should only expunge deleted documents

primary_onlyboolean

Specify whether the operation should only perform on primary shards. Defaults to false.

Default false

wait_for_completionboolean

Should the request wait until the force merge is completed.

Default true

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

Returns 200 with a any. Read it in later steps with {{forcemergePostIndexForcemerge.response.data.<field>}}.

Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.

Forcemerge (POST /{index}/_forcemerge) — OpenSearch — Documentation