1 回答

TA貢獻(xiàn)1801條經(jīng)驗(yàn) 獲得超16個(gè)贊
php 語法對(duì)我來說是新的,但是在數(shù)組中的 JSON 中,您需要將每個(gè) term(s) 子句包裝在它自己的bool和must/ filter/ etc 中。所以在 JSON 中它會(huì)是這樣的:
{"query":{
"bool":{
"must":[
{"bool":{
"must":{
"term":{
"interests" : "art"
}
}
}
},
{"bool":{
"must":{
"term":{
"community_privacy": "private"
}
}
}
}
]
}
}
}
- 1 回答
- 0 關(guān)注
- 129 瀏覽
添加回答
舉報(bào)