elasticsearch(1)常用命令

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sz85850597/article/details/82561854

查看集群状态

request

GET _cat/health?v

response

epoch      timestamp cluster        status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1536485402 17:30:02  my-application yellow          1         1      6   6    0    0        5             0                  -                 54.5%

查看所有index

request

GET _cat/indices?v

response

health status index     uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .kibana   UHQ4CLYzQECf_nxCqmsNMw   1   0          1            0        4kb            4kb
yellow open   testindex cLKhtHKbScWNqjZPRmUAqw   5   1          3            0     11.5kb         11.5kb

index简单操作

新增index
PUT /test_index?pretty
删除index
DELETE /test_index?pretty

猜你喜欢

转载自blog.csdn.net/sz85850597/article/details/82561854