Elasticsearch Reference Guide (Clearing Cache)

Clear Cache

Clear Cache API allows you to clear all caches or specific caches associated with one or more indexes.

POST /twitter/_cache/clear

By default, the API will clear all caches, and you can explicitly clear specific caches by setting queryfielddata or request.

can also clear all caches associated with a particular field by specifying field parameters using a comma-separated list of related fields. Note that the supplied name must reference a specific field - objects and field aliases are not supported.

多索引

Clearing the caching API can be applied to multiple indexes with a single call, even to the _all index.

POST /kimchy,elasticsearch/_cache/clear

POST /_cache/clear