Clear Cache

edit

The clear cache API allows to clear either all caches or specific cached associated with one or more indices.

POST /twitter/_cache/clear

The API, by default, will clear all caches. Specific caches can be cleaned explicitly by setting query, fielddata or request.

All caches relating to a specific field(s) can also be cleared by specifying fields parameter with a comma delimited list of the relevant fields. Note that the provided names must refer to concrete fields — objects and field aliases are not supported.

Multi Index

edit

The clear cache API can be applied to more than one index with a single call, or even on _all the indices.

POST /kimchy,elasticsearch/_cache/clear

POST /_cache/clear