#添加 (不添加id默认会生成id)
POST /cj/test
{"name":"jack","sex":"1","age":12
}
#添加 (id为第5个的)
POST /cj/test/5
{"name":"jackson","sex":"1","age":12
}
#条件查询 (match模糊查询)
GET /cj/test/_search
{"query":{"match":{"name": "jack"}}
}
#条件模糊查询 (多条件准确查询)
GET /cj/test/_search
{"query":{"terms":{"name":["jack","jackson"]}}
}
#覆盖 (id为第一个的)
PUT /cj/test/1
{"name":"kevin","sex":"0","age":24
}
#全部数据查询
GET /cj/test/_search
#删除 (删除id为1的)
DELETE /cj/test/1