Unfreeze index API

edit

Deprecated in 7.14

In 8.0, we removed the ability to freeze an index. In previous versions, freezing an index reduced its memory overhead. However, frozen indices are no longer useful due to recent improvements in heap memory usage. You can use this API to unfreeze indices that were frozen in 7.x. Frozen indices are not related to the frozen data tier.

Unfreezes an index.

Request

edit

POST /<index>/_unfreeze

Prerequisites

edit
  • If the Elasticsearch security features are enabled, you must have the manage index privilege for the target index or index alias.

Description

edit

When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.

Path parameters

edit
<index>
(Required, string) Identifier for the index.

Examples

edit

The following example unfreezes an index:

resp = client.indices.unfreeze(
    index="my-index-000001",
)
print(resp)
response = client.indices.unfreeze(
  index: 'my-index-000001'
)
puts response
const response = await client.indices.unfreeze({
  index: "my-index-000001",
});
console.log(response);
POST /my-index-000001/_unfreeze