elasticsearch must_not 多條件過濾使用 加上查詢語句

"body": {
"query": {
"bool": {
"must_not": [{
    "match": {
    "subordination_area": "省"
}},{
    "match": { "subordination_area": "市"

}}],
"must": [{
    "term": {
    "city": "成都市"
}}]}}}

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章