From 520d01d608b2d19acd5914382978124a18636b5c Mon Sep 17 00:00:00 2001 From: ben5556 <39107453+ben5556@users.noreply.github.com> Date: Mon, 17 Sep 2018 22:36:13 +1200 Subject: [PATCH] Corrected aggregation name to match the example Corrected aggregation name from intraday_return to hat_prices to match the aggregation name provided in the example --- .../6.2/search-aggregations-metrics-sum-aggregation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/en/elasticsearch/reference/6.2/search-aggregations-metrics-sum-aggregation.html b/html/en/elasticsearch/reference/6.2/search-aggregations-metrics-sum-aggregation.html index bb904cb34cbc2..05c3ce8fbe77c 100644 --- a/html/en/elasticsearch/reference/6.2/search-aggregations-metrics-sum-aggregation.html +++ b/html/en/elasticsearch/reference/6.2/search-aggregations-metrics-sum-aggregation.html @@ -655,7 +655,7 @@

Guide template

"value": 450.0 } } -}

The name of the aggregation (intraday_return above) also serves as the key by which the aggregation result can be retrieved from the returned response.

Scriptedit

We could also use a script to fetch the sales price:

POST /sales/_search?size=0
+}

The name of the aggregation (hat_prices above) also serves as the key by which the aggregation result can be retrieved from the returned response.

Scriptedit

We could also use a script to fetch the sales price:

POST /sales/_search?size=0
 {
     "query" : {
         "constant_score" : {