GET /order/_search
{
"query": {
"match_all": {
}
}
}
GET /order/_search
{
"query": {
"match": {
"all": "cook席"
}
}
}
GET /order/_search
{
"query": {
"multi_match": {
"query": "18511586465",
"fields": ["customerName", "receiveName", "receivePhone"]
}
}
}
GET /order/_search
{
"query": {
"term": {
"receivePhone": {
"value": "18511586465"
}
}
}
}
GET /order/_search
{
"query": {
"range": {
"totalAmount": {
"gte": 50,
"lte": 1000
}
}
}
}
GET /order/_search
{
"query": {
"geo_distance": {
"distance": "15km",
"location": "31.21,121.5"
}
}
}
GET /order/_search
{
"query": {
"function_score": {
"query": {
"match": {
"all": "席"
}
},
"functions": [
{
"filter": {
"term": {
"receiveName": "席"
}
},
"weight": 10
}
],
"boost_mode": "sum"
}
}
}
GET /order/_search
{
"query": {
"match": {
"all": "cookfan"
}
},
"highlight": {
"fields": {
"customerName": {
"require_field_match": "false"
}
}
}
}