总的来说,query 里面套着query 就Ok 了。
GET zebra_geo_poi/poi_data/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"source": "dzdp"
}
}, {
"bool": {
"should": [
{
"match": {
"first_type": "100"
}
}, {
"match": {
"first_type": "101"
}
}, {
"match": {
"first_type": "103"
}
}, {
"match": {
"first_type": "104"
}
}
]
}
}, {
"nested": {
"path": "expansion",
"query": {
"range": {
"expansion.avg_price": {
"gte": 10
}
}
}
}
}
]
}
}
}