我想删除所有*-meow索引。
但不允许使用通配符表达式DELETE
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Wildcard expressions or all indices are not allowed"}],"type":"illegal_argument_exception","reason":"Wildcard expressions or all indices are not allowed"},"status":400}
Run Code Online (Sandbox Code Playgroud)
怎么删除啊,有很多。。
Ami*_*wal 11
请参阅action.destructive_requires_namehttps://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html ,它控制删除操作中的使用wildcard。
PUT _cluster/设置
{
"transient": {
"action.destructive_requires_name": false // allow wildcards
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7510 次 |
| 最近记录: |