Compute the min, max, sum, count, and avg of the numeric field values of the records in one shot. This example aims to find the stats value of the open price of the ACWF ETF in the cf_etf_hist_price index:
"query": { "match": { "symbol": "ACWF"}},"aggs": {"stats_open_price": {"stats": {"field": "open"}}}