Skip to content

Commit

Permalink
[DOCS] Correct conditional clause in histogram agg docs (#45643)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hearen authored and jrodewig committed Aug 19, 2019
1 parent bfb6303 commit 4749ba6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ the `order` setting. Supports the same `order` functionality as the <<search-agg

==== Offset

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
(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.
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 three buckets (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.

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
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
Expand Down

0 comments on commit 4749ba6

Please sign in to comment.