|
@@ -18,9 +18,9 @@ _Sibling_::
|
|
|
Pipeline aggregations that are provided with the output of a sibling aggregation and are able to compute a
|
|
|
new aggregation which will be at the same level as the sibling aggregation.
|
|
|
|
|
|
-Pipeline aggregations can reference the aggregations they need to perform their computation by using the `buckets_paths`
|
|
|
+Pipeline aggregations can reference the aggregations they need to perform their computation by using the `buckets_path`
|
|
|
parameter to indicate the paths to the required metrics. The syntax for defining these paths can be found in the
|
|
|
-<<bucket-path-syntax, `buckets_path` Syntax>> section below.
|
|
|
+<<buckets-path-syntax, `buckets_path` Syntax>> section below.
|
|
|
|
|
|
Pipeline aggregations cannot have sub-aggregations but depending on the type it can reference another pipeline in the `buckets_path`
|
|
|
allowing pipeline aggregations to be chained. For example, you can chain together two derivatives to calculate the second derivative
|
|
@@ -29,7 +29,7 @@ allowing pipeline aggregations to be chained. For example, you can chain togeth
|
|
|
NOTE: Because pipeline aggregations only add to the output, when chaining pipeline aggregations the output of each pipeline aggregation
|
|
|
will be included in the final output.
|
|
|
|
|
|
-[[bucket-path-syntax]]
|
|
|
+[[buckets-path-syntax]]
|
|
|
[float]
|
|
|
=== `buckets_path` Syntax
|
|
|
|
|
@@ -96,13 +96,13 @@ a metric embedded inside a sibling aggregation:
|
|
|
},
|
|
|
"max_monthly_sales": {
|
|
|
"max_bucket": {
|
|
|
- "buckets_paths": "sales_per_month>sales" <1>
|
|
|
+ "buckets_path": "sales_per_month>sales" <1>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
--------------------------------------------------
|
|
|
-<1> `bucket_paths` instructs this max_bucket aggregation that we want the maximum value of the `sales` aggregation in the
|
|
|
+<1> `buckets_path` instructs this max_bucket aggregation that we want the maximum value of the `sales` aggregation in the
|
|
|
`sales_per_month` date histogram.
|
|
|
|
|
|
[float]
|