# elastach-search常用命令

```shell

# 查看所有的索引
curl -u elastic:elastic http://localhost:9211/_cat/indices?v

# 删除索引
curl -u elastic:elastic -XDELETE 'http://localhost:9211/gas-*-2024.05*'


# 查看节点磁盘分配情况
curl -u elastic:elastic http://localhost:9211/_cat/allocation?v

```