gpt4 book ai didi

elasticsearch - elasticsearch,如何使用通配符删除多个索引

转载 作者:行者123 更新时间:2023-12-03 01:13:39 25 4
gpt4 key购买 nike

我想删除所有*-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}
如何删除它们,其中有很多。

最佳答案

请引用https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html中的action.destructive_requires_name,它控制删除操作中wildcard的使用。

关于elasticsearch - elasticsearch,如何使用通配符删除多个索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63388937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com