同福

查看Elasticsearch的索引列表

介绍

介绍

福哥在使用Elasticsearch的时候,需要查下索引信息

研究了一下方法,分享给大家

教程

表格格式

在终端查看表格格式索引列表

curl 'http://localhost:9200/_cat/indices'

62dc704e9daf9616.jpg

[{
    "health": "yellow",
    "status": "open",
    "index": "tongfunet",
    "uuid": "GDc2K8YFSamSoxCWiFzsPQ",
    "pri": "5",
    "rep": "1",
    "docs.count": "1",
    "docs.deleted": "0",
    "store.size": "4.5kb",
    "pri.store.size": "4.5kb"
}]

注解

对照可以看出各个字段的意思

  • health:索引健康状态

  • status:索引状态

  • index:索引名称

  • uuid:索引UUID

  • pri:

  • rep:

  • docs.count:文档数量

  • docs.deleted:已删除文档数量

  • store.size:存储空间大小

  • pri.store.size: