ES查询中,先聚合,在聚合结果中进行过滤
{ "size": 0, "aggs": { "terms": { "terms": { "field": "mustTags", "include": ".*总则.*", "size": 999 } } } }
有include,自然就有exclude,用法一样,支持通配符匹配(正则方式)。
标签:rms exclude 查询 must agg field 结果 tag clu
ES查询中,先聚合,在聚合结果中进行过滤
{ "size": 0, "aggs": { "terms": { "terms": { "field": "mustTags", "include": ".*总则.*", "size": 999 } } } }
有include,自然就有exclude,用法一样,支持通配符匹配(正则方式)。
标签:rms exclude 查询 must agg field 结果 tag clu
原文地址:https://www.cnblogs.com/eviltuzki/p/8183185.html