PUT /test
PUT /test (创建一个test索引, 也可以称为数据库) { "mappings":{ "properties":{ "name": { "type": "text" }, "age": { "type": "text" }, "hobby":{ "type":"text" } } } }查看一下:
DELETE /test
POST /test/user/1 (其中 test是索引(数据库),user(表))
GET /test/user/1
PUT /test/user/1
PUT /test/user/1 { "name": "xiao reiver", "age":23, "hobby":[ "ball", "run" ] }查询一下:
POST /test/user/1/_update
POST /test/user/1/_update { "doc":{ "name": "big river", "age": 18 } }DELETE /test/user/1
查询一下: