集約クエリの例 例:total_priceの合計値と平均値を取得するクエリ total_price合計 total_price平均 placeごとの total_price合計 total_price平均 GET user_price_index_*/_search { "size": 0, "aggs": { "sum_total_price": { "sum": { "field": "total_price" } }, "ave_total_price": { "avg": { "field": "total_price" } }, "group_by_term_place": { "terms": { "field": "place.keyword" }, "aggs": { "sum_total_price": { "sum": { "field": "total_price"