From 13f961a3d34d1eeedd4d41bb03226d3901fd68ec Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Thu, 20 Aug 2015 18:05:02 -0300 Subject: [PATCH 1/2] s/bucket_paths/buckets_path/ Using "bucket_paths" makes the server return a 400 with "Unknown key for a VALUE_STRING in [aggregation-name]: [buckets_paths]." --- .../pipeline/derivative-aggregation.asciidoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc b/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc index 93580409140..408c6163489 100644 --- a/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc +++ b/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc @@ -54,7 +54,7 @@ The following snippet calculates the derivative of the total monthly `sales`: }, "sales_deriv": { "derivative": { - "buckets_paths": "sales" <1> + "buckets_path": "sales" <1> } } } @@ -63,7 +63,7 @@ The following snippet calculates the derivative of the total monthly `sales`: } -------------------------------------------------- -<1> `bucket_paths` instructs this derivative aggregation to use the output of the `sales` aggregation for the derivative +<1> `buckets_path` instructs this derivative aggregation to use the output of the `sales` aggregation for the derivative And the following may be the response: @@ -137,12 +137,12 @@ monthly sales: }, "sales_deriv": { "derivative": { - "buckets_paths": "sales" + "buckets_path": "sales" } }, "sales_2nd_deriv": { "derivative": { - "buckets_paths": "sales_deriv" <1> + "buckets_path": "sales_deriv" <1> } } } @@ -151,7 +151,7 @@ monthly sales: } -------------------------------------------------- -<1> `bucket_paths` for the second derivative points to the name of the first derivative +<1> `buckets_path` for the second derivative points to the name of the first derivative And the following may be the response: From a960b3cac49401bb759f71c239833c3140de3056 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Thu, 20 Aug 2015 18:07:51 -0300 Subject: [PATCH 2/2] Here too. --- .../aggregations/pipeline/derivative-aggregation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc b/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc index 408c6163489..ec63600a321 100644 --- a/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc +++ b/docs/reference/aggregations/pipeline/derivative-aggregation.asciidoc @@ -225,7 +225,7 @@ of the total sales per month but ask for the derivative of the sales as in the u }, "sales_deriv": { "derivative": { - "buckets_paths": "sales", + "buckets_path": "sales", "unit": "day" <1> } }