1. Delete Index /删除索引

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html

译文链接 : Delete Index /删除索引

贡献者 : Le-Mon

注意:涉及翻译内容: Index-索引;types-类型;mapping-映射;aliases-别名;shards-分片;replicas-副本

删除索引API操作:

curl -XDELETE 'localhost:9200/twitter?pretty'

上述命令删除了 twitter 索引,删除必须指定索引,别名或通配符表达式。

删除索引API也可以应用于多个索引,通过使用逗号分隔,或者通过 (小心!)_all 或者 * 删除所有index

可以通过设置 action.destructive_requires_nametrue 来避免通配符或者 _all 操作。这个设置也可以通过集群api设置。

Copyright © Kilvn 2021. all right reserved,powered by Gitbook最后更新时间: 2021-06-08 20:22:42

results matching ""

    No results matching ""