Clear cache APIedit

This functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.

Clear the cache of searchable snapshots.

Requestedit

POST /_searchable_snapshots/cache/clear

POST /<index>/_searchable_snapshots/cache/clear

Prerequisitesedit

If the Elasticsearch security features are enabled, you must have the manage cluster privilege and the manage index privilege for any included indices to use this API. For more information, see Security privileges.

Descriptionedit

Path parametersedit

<index>
(Optional, string) A comma-separated list of index names for which the searchable snapshots cache must be cleared.

Examplesedit

Clears the cache of the index docs:

POST /docs/_searchable_snapshots/cache/clear