mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 08:29:09 +00:00
parent
80e5c0acf8
commit
9674cbbe62
@ -104,7 +104,7 @@ a metric embedded inside a sibling aggregation:
|
|||||||
`sales_per_month` date histogram.
|
`sales_per_month` date histogram.
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
==== Special Paths
|
=== Special Paths
|
||||||
|
|
||||||
Instead of pathing to a metric, `buckets_path` can use a special `"_count"` path. This instructs
|
Instead of pathing to a metric, `buckets_path` can use a special `"_count"` path. This instructs
|
||||||
the pipeline aggregation to use the document count as it's input. For example, a moving average can be calculated on the document
|
the pipeline aggregation to use the document count as it's input. For example, a moving average can be calculated on the document
|
||||||
@ -128,6 +128,20 @@ count of each bucket, instead of a specific metric:
|
|||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
<1> By using `_count` instead of a metric name, we can calculate the moving average of document counts in the histogram
|
<1> By using `_count` instead of a metric name, we can calculate the moving average of document counts in the histogram
|
||||||
|
|
||||||
|
[[dots-in-agg-names]]
|
||||||
|
[float]
|
||||||
|
=== Dealing with dots in agg names
|
||||||
|
|
||||||
|
An alternate syntax is supported to cope with aggregations or metrics which
|
||||||
|
have dots in the name, such as the ++99.9++th
|
||||||
|
<<search-aggregations-metrics-percentile-aggregation,percentile>>. This metric
|
||||||
|
may be referred to as:
|
||||||
|
|
||||||
|
[source,js]
|
||||||
|
---------------
|
||||||
|
"buckets_path": "my_percentile[99.9]"
|
||||||
|
---------------
|
||||||
|
|
||||||
[[gap-policy]]
|
[[gap-policy]]
|
||||||
[float]
|
[float]
|
||||||
=== Dealing with gaps in the data
|
=== Dealing with gaps in the data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user