http://www.reibang.com/p/56cfc972d372
Elasticsearch多字段查詢碌宴,以下語句是根據(jù)指定的值取消訂單,查詢所有字段出現(xiàn)這一值的數(shù)據(jù)
GET /auditlog202002/log/_search
{
"query": {
"bool": {
"must": [],
"filter": [
{
"multi_match": {
"type": "best_fields",
"query": "取消訂單",
"lenient": true
}
},
{
"range": {
"OrderContent.CreateTime": {
"format": "strict_date_optional_time",
"gte": "2019-02-13",
"lte": "2020-02-13"
}
}
}
],
"should": [],
"must_not": []
}
}
}