Clear indices and data streams from the shared cache for partially mounted indices.
Required authorization
- Index privileges:
manage - Cluster privileges:
manage
Query parameters
-
Whether to expand wildcard expression to concrete indices that are open, closed or both
Values are
all,open,closed,hidden, ornone. -
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.
POST
/_searchable_snapshots/cache/clear
curl \
--request POST 'http://api.example.com/_searchable_snapshots/cache/clear'