WARNING: Version 5.4 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Flush
editFlush
editThe flush API allows to flush one or more indices through an API. The flush process of an index basically frees memory from the index by flushing data to the index storage and clearing the internal transaction log. By default, Elasticsearch uses memory heuristics in order to automatically trigger flush operations as required in order to clear memory.
POST twitter/_flush
Request Parameters
editThe flush API accepts the following request parameters:
|
If set to |
|
Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal) |
Multi Index
editThe flush API can be applied to more than one index with a single call,
or even on _all
the indices.
POST kimchy,elasticsearch/_flush POST _flush