← Main page

Elasticsearch data types

binary

Binary value encoded as a Base64 string.

boolean

true and false values.

keyword

Used for structured content such as IDs, email addresses, hostnames, status codes, zip codes, or tags.

text

the traditional field type for full-text content such as the body of an email or the description of a product.

completion

the suggester provides auto-complete/search-as-you-type functionality. The suggester uses data structures that enable fast lookups, but are costly to build and are stored in-memory.

float

a single-precision 32-bit IEEE 754 floating point number, restricted to finite values.

integer

a signed 32-bit integer with a minimum value of -2^31 and a maximum value of 2^31-1.

date

internally, dates are converted to UTC (if the time-zone is specified) and stored as a long number representing milliseconds-since-the-epoch.

alias

an alias mapping defines an alternate name for a field in the index. The alias can be used in place of the target field in search requests.

object

default field type for internal objects.

nested

the nested type is a specialised version of the object data type that allows arrays of objects to be indexed in a way that they can be queried independently of each other.

join

it is a special field that creates parent/child relation within documents of the same index. The relations section defines a set of possible relations within the documents, each relation being a parent name and a child name. Mapping settings limit