Skip to content

Commit 4b55981

Browse files
Hearenjrodewig
authored andcommitted
[DOCS] Correct conditional clause in histogram agg docs (#45643)
1 parent e5679f4 commit 4b55981

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/reference/aggregations/bucket/histogram-aggregation.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ the `order` setting. Supports the same `order` functionality as the <<search-agg
185185

186186
==== Offset
187187

188-
By default the bucket keys start with 0 and then continue in even spaced steps of `interval`, e.g. if the interval is 10 the first buckets
189-
(assuming there is data inside them) will be `[0, 10)`, `[10, 20)`, `[20, 30)`. The bucket boundaries can be shifted by using the `offset` option.
188+
By default the bucket keys start with 0 and then continue in even spaced steps
189+
of `interval`, e.g. if the interval is `10`, the first three buckets (assuming
190+
there is data inside them) will be `[0, 10)`, `[10, 20)`, `[20, 30)`. The bucket
191+
boundaries can be shifted by using the `offset` option.
190192

191193
This can be best illustrated with an example. If there are 10 documents with values ranging from 5 to 14, using interval `10` will result in
192194
two buckets with 5 documents each. If an additional offset `5` is used, there will be only one single bucket `[5, 15)` containing all the 10

0 commit comments

Comments
 (0)