percentiles

Produce percentiles for the numeric field value of the records. The example aims to obtain the percentiles of the open price of the ACWF ETF in the cf_etf_hist_price index. The open price percentiles at [1%,5%,25%,50%,75%,95%,99%] are [24.923, 25.7931, 27.3052, 28.47, 29.03, 29.4086, 29.5033]:

"query": { "match": { "symbol": "ACWF"}},"aggs": {"open_price_percentiles": {"percentiles": {"field":"open"}}}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.76.218