Document that min/max operate on the double representation of the data.

Relates #9545
This commit is contained in:
Adrien Grand 2016-11-28 10:34:43 +01:00
parent 243a788289
commit 4c46ffcecf
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,10 @@
A `single-value` metrics aggregation that keeps track and returns the maximum value among the numeric values extracted from the aggregated documents. These values can be extracted either from specific numeric fields in the documents, or be generated by a provided script.
NOTE: The `min` and `max` aggregation operate on the `double` representation of
the data. As a consequence, the result may be approximate when running on longs
whose absolute value is greater than +2^53+.
Computing the max price value across all documents
[source,js]

View File

@ -3,6 +3,10 @@
A `single-value` metrics aggregation that keeps track and returns the minimum value among numeric values extracted from the aggregated documents. These values can be extracted either from specific numeric fields in the documents, or be generated by a provided script.
NOTE: The `min` and `max` aggregation operate on the `double` representation of
the data. As a consequence, the result may be approximate when running on longs
whose absolute value is greater than +2^53+.
Computing the min price value across all documents:
[source,js]