0 0 0

es索引操作相关命令

惰卫
27天前 295

删除旧索引

curl -X DELETE "localhost:9200/your_old_index"

查看索引:

curl -u username:password -X GET "http://localhost:9200/_cat/indices?v" 

 

看索引的存储大小:
curl -X GET "localhost:9200/_cat/indices?v&h=index,store.size"
查看索引的文档数量:
curl -X GET "localhost:9200/_cat/indices?v&h=index,docs.count"
查看索引的分片信息:
curl -X GET "localhost:9200/_cat/shards?v"
最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
请先登录后发表评论!