es 索引

索引创建

Index
对比关系型数据库,创建索引就等同于创建数据库
在postman中,向es服务器发送put请求

http://127.0.0.1:9200/shopping

创建成功:

put存在幂等性。

查询索引

使用的是get请求

http://127.0.0.1:9200/shopping1

查看所有索引

使用的是get请求

http://127.0.0.1:9200/_cat/indices?v

删除索引

DELETE请求

http://127.0.0.1:9200/shopping
posted @ 2022-02-11 00:47  King-DA  阅读(65)  评论(0)    收藏  举报