過濾我查詢了以下內容:Elasticsearch - 排除聚合
{
"query": {
"bool": {
"filter": {
"terms": {
"agent_id": [
"58becc297513311ad81577eb"
]
}
}
}
},
"aggs": {
"agent_id": {
"terms": {
"field": "agent_id"
}
}
}
}
我想從過濾器中排除的聚集。 In solr there is an option to tag a filter and use this tag to exclude this filter from the fact query。
我該如何在Elasticsearch中做同樣的事情。