1. 程式人生 > >elasticsearch結構化查詢

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