你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Cheetah
赞同来自: exceptions 、novia
zhangli
赞同来自:
要回复问题请先登录或注册
4 个回复
Cheetah
赞同来自: exceptions 、novia
"query" : {
"match_all" : { }
},
"aggregations" : {
"a" : {
"terms" : {
"field" : "a",
"order" : {
"c.value" : "asc"
}
},
"aggregations" : {
"b" : {
"terms" : {
"field" : "b"
}
},
"c" : {
"sum" : {
"field" : "c"
}
}
}
}
}
}
zhangli
赞同来自:
Cheetah
赞同来自:
.field("a").subAggregation(AggregationBuilders.terms("b").field("b"))
.subAggregation(AggregationBuilders.sum("c").field("c")
.order(Terms.Order.aggregation("c", false)
zhangli
赞同来自: