Field datatypes | Elasticsearch Reference [6.x] | Elastic

You are looking at preliminary documentation for a future release. Not what you want? See the current release documentation.

Elasticsearch Reference [6.x] » Mapping » Field datatypes

«  Removal of mapping types   Alias datatype  »

[](#mapping-types)Field datatypesedit

Elasticsearch supports a number of different datatypes for the fields in a document:

[](#_core_datatypes)Core datatypesedit

string

text and keyword

Numeric datatypes

long, integer, short, byte, double, float, half_float, scaled_float

Date datatype

date

Boolean datatype

boolean

Binary datatype

binary

Range datatypes

integer_range, float_range, long_range, double_range, date_range

[](#_complex_datatypes)Complex datatypesedit

Array datatype

Array support does not require a dedicated type

Object datatype

object for single JSON objects

Nested datatype

nested for arrays of JSON objects

[](#_geo_datatypes)Geo datatypesedit

Geo-point datatype

geo_point for lat/lon points

Geo-Shape datatype

geo_shape for complex shapes like polygons

[](#_specialised_datatypes)Specialised datatypesedit

IP datatype

ip for IPv4 and IPv6 addresses

Completion datatype

completion to provide auto-complete suggestions

Token count datatype

token_count to count the number of tokens in a string

mapper-murmur3

murmur3 to compute hashes of values at index-time and store them in the index

mapper-annotated-text

annotated-text to index text containing special markup (typically used for identifying named entities)

Percolator type

Accepts queries from the query-dsl

join datatype

Defines parent/child relation for documents within the same index

Alias datatype

Defines an alias to an existing field.

[](#_multi_fields)Multi-fieldsedit

It is often useful to index the same field in different ways for different purposes. For instance, a string field could be mapped as a text field for full-text search, and as a keyword field for sorting or aggregations. Alternatively, you could index a text field with the standard analyzer, the english analyzer, and the french analyzer.

This is the purpose of _multi-fields_. Most datatypes support multi-fields via the fields parameter.

«  Removal of mapping types   Alias datatype  »


Original url: Access
Created at: 2018-11-26 14:03:53
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论