2018年7月2日

es多字段聚合

摘要: 实现SQL Group By类似的效果select id,name ,sum(money) from table group by id,name GET myindex/mytype/_search { "size": 0, "query": { "match_all": {} }, "aggs": { "sexprof": { "terms": { "script": { "inline"... 阅读全文

posted @ 2018-07-02 17:12 zhangfeitaimengle 阅读(978) 评论(0) 推荐(0) 编辑

导航