elasticsearch结构化查询

{
"query": {
"bool": {
"must": [
{
"term": {
"aaa": "bbbbb"
}
},
{
"term": {
"ip": "8.8.8.8"
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 10,
"sort": [],
"aggs": {}
}

must => and
should => or

猜你喜欢

转载自blog.51cto.com/3922078/2314731