2、查询
GET /index/type/id
3、修改
POST /index/type/id/_update
{
“doc”: {
“FIELD”: “值”
}
}
4、删除
DELETE /index/type/id
二、搜索
搜索可以分成六大类
_**1、query string search
2、query DSL
3、query filter
4、full-text search
5、phrase search
6、highlight search**_
1)query string search
搜索全部:GET supplier/user/_search
{
“took”: 2,
“timed_out”: false,
“_shards”: {
“total”: 5,
“successful”: 5,
“failed”: 0
},
“hits”: {
“total”: 3,
“max_score”: 1,
“hits”: [
{
“_index”: “supplier”,
“_type”: “user”,
“_id”: “2”,
“_score”: 1,
“_source”: {
“name”: “lisi”,
“age”: 26,
“address”: “bei jing tong zhou”,
“price”: 10000,
“