Clear the cache
/_cache/clear Clear the cache of one or more indices. For data streams, the API clears the caches of the stream's backing indices.
By default, the clear cache API clears all caches.
To clear only specific caches, use the fielddata, query, or request parameters.
To clear the cache only of specific fields, use the fields parameter.
Required authorization
- Index privileges:
manage
Parameters
query Query Parameters
| Name | Type |
|---|---|
index Comma-separated list of data streams, indices, and aliases used to limit the request.
Supports wildcards ( | type TypesIndices = type TypesIndexName = string | type TypesIndexName = string[] |
allow_no_indices If | boolean |
expand_wildcards Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as | type TypesExpandWildcards = type TypesExpandWildcard = "all" | "open" | "closed" | "hidden" | "none" | type TypesExpandWildcard = "all" | "open" | "closed" | "hidden" | "none"[] |
fielddata If | boolean |
fields Comma-separated list of field names used to limit the | type TypesFields = type TypesField = string | type TypesField = string[] |
ignore_unavailable If | boolean |
query If | boolean |
request If | boolean |
Responses
_shards?:
}