Skip to content

Commit 2d7f008

Browse files
author
Christoph Büscher
committed
[Docs] Clarify numeric datatype ranges
Since elastic#25826 we reject infinite values for float, double and half_float datatypes. This change adds this restriction to the documentation for the supported datatypes. Closes elastic#27653
1 parent efe2e52 commit 2d7f008

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/reference/mapping/types/numeric.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ The following numeric types are supported:
88
`integer`:: A signed 32-bit integer with a minimum value of +-2^31^+ and a maximum value of +2^31^-1+.
99
`short`:: A signed 16-bit integer with a minimum value of +-32,768+ and a maximum value of +32,767+.
1010
`byte`:: A signed 8-bit integer with a minimum value of +-128+ and a maximum value of +127+.
11-
`double`:: A double-precision 64-bit IEEE 754 floating point number.
12-
`float`:: A single-precision 32-bit IEEE 754 floating point number.
13-
`half_float`:: A half-precision 16-bit IEEE 754 floating point number.
11+
`double`:: A double-precision 64-bit IEEE 754 floating point number, restricted to finite values.
12+
`float`:: A single-precision 32-bit IEEE 754 floating point number, restricted to finite values.
13+
`half_float`:: A half-precision 16-bit IEEE 754 floating point number, restricted to finite values.
1414
`scaled_float`:: A floating point number that is backed by a `long`, scaled by a fixed `double` scaling factor.
1515

1616
Below is an example of configuring a mapping with numeric fields:

0 commit comments

Comments
 (0)