更新时间:2023-12-04 11:00:34
你可以这样写
"filter": {
"and": [
{
"term": {"sex": "male"}
},
{
"or": [
{"terms": {"city": [ "beijing", "shanghai"]}},
{"term": {"home": "guangzhou" } }
]
}
]
}