es 对a分组对b聚合 javaAPI
es7.1聚合查询 javaAPI (三) es复杂聚合查询 — select a,count(distinct b) 对a分组对b聚合类似如下sqlselect a,count(distinct b) as count from myIndex group by a order by count desc limit 5;核心聚合方法// 去重聚合CardinalityAggregationBuilder distinct_count = AggregationBuilde
原创
2020-08-28 15:29:47 ·
435 阅读 ·
0 评论