Clear the searchable snapshots shared cache
- POST /{index}/_searchable_snapshots/cache/clear
- POST /_searchable_snapshots/cache/clear
Clear indices and data streams from the shared cache for partially mounted indices.
More about searchable snapshotsRequired privileges
Index
manage
Cluster
manage
Query parameters
-
expand_wildcardsunion oneOf · default: open -
Whether to expand wildcard expression to concrete indices that are open, closed or both
Supported values include:
all: Match any data stream or index, including hidden ones.open: Match open, non-hidden indices. Also matches any non-hidden data stream.closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.hidden: Match hidden data streams and hidden indices. Must be combined withopen,closed, orboth.none: Wildcard expressions are not accepted.
-
Values:
allopenclosedhiddennone -
allow_no_indicesboolean -
A setting that does two separate checks on the index expression. If
false, the request returns an error (1) if any wildcard expression (including_alland*) resolves to zero matching indices or (2) if the complete set of resolved indices, aliases or data streams is empty after all expressions are evaluated. Iftrue, index expressions that resolve to no indices are allowed and the request returns an empty result.
Responses
application/json
Response Type: object