WARNING: Version 2.0 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Numeric datatypes
editNumeric datatypes
editThe following numeric types are supported:
|
A signed 64-bit integer with a minimum value of |
|
A signed 32-bit integer with a minimum value of |
|
A signed 16-bit integer with a minimum value of |
|
A signed 8-bit integer with a minimum value of |
|
A double-precision 64-bit IEEE 754 floating point. |
|
A single-precision 32-bit IEEE 754 floating point. |
Below is an example of configuring a mapping with numeric fields:
PUT my_index { "mappings": { "my_type": { "properties": { "number_of_bytes": { "type": "integer" }, "time_in_seconds": { "type": "float" } } } } }
Parameters for numeric fields
editThe following parameters are accepted by numeric types:
Try to convert strings to numbers and truncate fractions for integers.
Accepts |
|
Field-level index time boosting. Accepts a floating point number, defaults
to |
|
Should the field be stored on disk in a column-stride fashion, so that it
can later be used for sorting, aggregations, or scripting? Accepts |
|
If |
|
Whether or not the field value should be included in the
|
|
Should the field be searchable? Accepts |
|
Accepts a numeric value of the same |
|
Controls the number of extra terms that are indexed to make
|
|
Whether the field value should be stored and retrievable separately from
the |