标签: sql elasticsearch
现在我有一个索引和一个类型(test_type),映射如下
{A,B,C,D,E,F,G,H,I,Z}
我的sql是
select A,B,C,D,E,F,G,H,I,count(*) as a_count,sum(Z) as z_sum from test_type group by A,B,C,D,E,F,G,H,I
如何将此sql转换为es查询?