查看集群运行状态
GET /_cat/health?v
响应
1573460861 16:27:41 my-application yellow 1 1 372 372 0 0 371 0 - 50.1%
green:一切都好(集群功能齐全)
yellow:所有数据均可用,但某些副本尚未分配(集群功能齐全)
red:-由于某些原因,某些数据不可用(集群部分起作用)
获取集群节点列表
GET /_cat/nodes?v
查看索引
GET /_cat/indices?v
创建一个name为customer的索引
PUT /customer?pretty GET /_cat/indices?v
post创建,不用指定id
POST /customer/doc?pretty { "name": "Jane Doe" }