我正在尝试在“and”过滤器中添加一个“not”过滤器
样本输入:
{
"query":{
"filtered":{
"query":{
"query_string":{
"query":"error",
"fields":[
"request"
]
}
},
"filter":{
and:[
{
"terms":{
"hashtag":[
"br2"
]
},
"not":{
"terms":{
"hashtag":[
"br1"
]
}
}
}
]
}
}
}
},
}
但是上面给出了错误,我也尝试了各种组合但徒劳无功。以上只是一个简单的示例,我需要一个同时存在“and”、“not”过滤器的查询。