过滤我查询了以下内容: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中做同样的事情。