ES 在聚合结果中进行过滤 发表于 2018-01-03 分类于 ElasticSearch ES查询中,先聚合,在聚合结果中进行过滤 123456789101112{ "size": 0, "aggs": { "terms": { "terms": { "field": "mustTags", "include": ".*总则.*", "size": 999 } } }} 有include,自然就有exclude,用法一样,支持通配符匹配(正则方式)。