首页 > 其他 > 详细

获取ElasticSearch索引列表

时间:2020-03-30 13:26:11      阅读:199      评论:0      收藏:0      [点我收藏+]
查询索引列表信息并格式化为json:

http://127.0.0.1:9021/_cat/indices?format=json&index=[索引名称,可使用通配符]

执行后获取到的结果集如下:

[
    {
        "health": "green",
        "status": "open",
        "index": "[此处为你的索引名称]",
        "uuid": "towtsSEnQR6hqOTDDsWdig",
        "pri": "5",
        "rep": "1",
        "docs.count": "25",
        "docs.deleted": "0",
        "store.size": "258.4kb",
        "pri.store.size": "258.4kb"
    },
    {
        ......
    }
]

 

获取ElasticSearch索引列表

原文:https://www.cnblogs.com/merely/p/12598008.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!