diff --git a/docs/reference/aggregations/bucket/histogram-aggregation.asciidoc b/docs/reference/aggregations/bucket/histogram-aggregation.asciidoc index 380d06258da76..2576662b6d13f 100644 --- a/docs/reference/aggregations/bucket/histogram-aggregation.asciidoc +++ b/docs/reference/aggregations/bucket/histogram-aggregation.asciidoc @@ -14,7 +14,8 @@ To make this more formal, here is the rounding function that is used: bucket_key = Math.floor((value - offset) / interval) * interval + offset -------------------------------------------------- -The `interval` must be a positive decimal, while the `offset` must be a decimal in `[0, interval[`. +The `interval` must be a positive decimal, while the `offset` must be a decimal in `[0, interval)` +(a decimal greater than or equal to `0` and less than `interval`) The following snippet "buckets" the products based on their `price` by interval of `50`: @@ -73,7 +74,7 @@ And the following may be the response: ==== Minimum document count -The response above show that no documents has a price that falls within the range of `[100 - 150)`. By default the +The response above show that no documents has a price that falls within the range of `[100, 150)`. By default the response will fill gaps in the histogram with empty buckets. It is possible change that and request buckets with a higher minimum count thanks to the `min_doc_count` setting: @@ -185,10 +186,10 @@ the `order` setting. Supports the same `order` functionality as the <