Browse Source

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
Clinton Gormley 10 years ago
parent
commit
64ec18afa0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/reference/aggregations/bucket/histogram-aggregation.asciidoc

+ 3 - 1
docs/reference/aggregations/bucket/histogram-aggregation.asciidoc

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