📜  在 elasticsearch currl 中删除分片 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:01.998000             🧑  作者: Mango

代码示例1
[root@localhost ~]#curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk {'print $1'} | xargs -i curl -XDELETE "http://localhost:9200/{}"