Clear the cache
Technical preview
Clear indices and data streams from the shared cache for partially mounted indices.
Path parameters
-
index
string | array[string] Required A comma-separated list of data streams, indices, and aliases to clear from the cache. It supports wildcards (
*
).
Query parameters
-
expand_wildcards
string | array[string] Whether to expand wildcard expression to concrete indices that are open, closed or both.
-
allow_no_indices
boolean Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes
_all
string or when no indices have been specified)
POST
/{index}/_searchable_snapshots/cache/clear
curl \
--request POST http://api.example.com/{index}/_searchable_snapshots/cache/clear \
--header "Authorization: $API_KEY"
Response examples (200)
{}