1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- [[mapping-types]]
- == Field datatypes
- Elasticsearch supports a number of different datatypes for the fields in a
- document:
- [float]
- === Core datatypes
- <<string>>:: `string`
- <<number>>:: `long`, `integer`, `short`, `byte`, `double`, `float`
- <<date>>:: `date`
- <<boolean>>:: `boolean`
- <<binary>>:: `binary`
- [float]
- === Complex datatypes
- <<array>>:: Array support does not require a dedicated `type`
- <<object>>:: `object` for single JSON objects
- <<nested>>:: `nested` for arrays of JSON objects
- [float]
- === Geo dataypes
- <<geo-point>>:: `geo_point` for lat/lon points
- <<geo-shape>>:: `geo_shape` for complex shapes like polygons
- [float]
- === Specialised datatypes
- <<ip>>:: `ip` for IPv4 addresses
- <<search-suggesters-completion,Completion datatype>>::
- `completion` to provide auto-complete suggestions
- <<token-count>>:: `token_count` to count the number of tokens in a string
- Attachment datatype::
- See the https://github.com/elastic/elasticsearch-mapper-attachments[mapper attachment plugin]
- which supports indexing ``attachments'' like Microsoft Office formats, Open
- Document formats, ePub, HTML, etc. into an `attachment` datatype.
- include::types/array.asciidoc[]
- include::types/binary.asciidoc[]
- include::types/boolean.asciidoc[]
- include::types/date.asciidoc[]
- include::types/geo-point.asciidoc[]
- include::types/geo-shape.asciidoc[]
- include::types/ip.asciidoc[]
- include::types/nested.asciidoc[]
- include::types/numeric.asciidoc[]
- include::types/object.asciidoc[]
- include::types/string.asciidoc[]
- include::types/token-count.asciidoc[]
|