福哥在使用Elasticsearch的时候,需要查下索引信息
研究了一下方法,分享给大家
在终端查看表格格式索引列表
curl 'http://localhost:9200/_cat/indices'

在终端查看JSON格式的索引列表
curl 'http://localhost:9200/_cat/indices?format=json'

[{
"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: