"aggs": {
"sum_price": {
"sum": {
"field": "price"
}
}
}
以上查询如何才能变成我想要的这种:
"aggs": {
"sum_price": {
"sum": {
"field": "price * count"
}
}
}
"sum_price": {
"sum": {
"field": "price"
}
}
}
以上查询如何才能变成我想要的这种:
"aggs": {
"sum_price": {
"sum": {
"field": "price * count"
}
}
}
1 个回复
ranshouxu
赞同来自:
Aggregations?可以研究一下