1. 索引的CRUD
基于REST风格的API
(1)创建索引:PUT /index?pretty
(2)查询索引:GET _cat/indices?v
(3)删除索引:DELETE /index?pretty
(4)插入数据:
PUT /index/_doc/id
{
Json数据
}
(5)
-
- 全量替换
-
- 指定字段更新
(6)删除数据 DELETE /index/type/id
1. 索引的CRUD
基于REST风格的API
(1)创建索引:PUT /index?pretty
(2)查询索引:GET _cat/indices?v
(3)删除索引:DELETE /index?pretty
(4)插入数据:
PUT /index/_doc/id
{
Json数据
}
(5)
(6)删除数据 DELETE /index/type/id