Merge pull request #11661 from pjcard/patch-1
Make explicit the requirement for intervals to be integers Conflicts: docs/reference/search/aggregations/bucket/histogram-aggregation.asciidoc
This commit is contained in:
parent
c8f635d429
commit
64ec18afa0
|
@ -18,6 +18,8 @@ if (rem < 0) {
|
|||
bucket_key = value - rem
|
||||
--------------------------------------------------
|
||||
|
||||
From the rounding function above it can be seen that the intervals themsevles **must** be integers.
|
||||
|
||||
The following snippet "buckets" the products based on their `price` by interval of `50`:
|
||||
|
||||
[source,js]
|
||||
|
@ -339,4 +341,4 @@ had a value.
|
|||
}
|
||||
--------------------------------------------------
|
||||
|
||||
<1> Documents without a value in the `quantity` field will fall into the same bucket as documents that have the value `0`.
|
||||
<1> Documents without a value in the `quantity` field will fall into the same bucket as documents that have the value `0`.
|
||||
|
|
Loading…
Reference in New Issue