[DOCS] Correct conditional clause in histogram agg docs (#45643)

This commit is contained in:
LHearen 2019-08-19 22:07:37 +08:00 committed by James Rodewig
parent da0a785685
commit 8f86faca5c
1 changed files with 4 additions and 2 deletions

View File

@ -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