Unfreeze index API
Unfreeze index API
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.
New API reference
For the most up-to-date API details, refer to Index APIs.
Unfreezes an index.
Request
POST /<index>/_unfreeze
Prerequisites
- If the Elasticsearch security features are enabled, you must have the
manage
index privilege for the target index or index alias.
Description
When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.
Path parameters
<index>
(Required, string) Identifier for the index.
Examples
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
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .