OpenSearch Retrieval Engine Edition supports 18 built-in field types. The sections below group them by category and describe what each type stores, its format, and which index types it supports.
Text types
| Type | Description | Multi-value | Forward index | Summary index | Inverted index |
|---|---|---|---|---|---|
| TEXT | Stores text data. Requires an analyzer configured in the schema. | No | No | Yes | Yes |
| STRING | Stores strings. | Yes | Yes | Yes | Yes |
TEXT fields must have an analyzer configured in the schema.
Numeric types
| Type | Description | Multi-value | Forward index | Summary index | Inverted index |
|---|---|---|---|---|---|
| INT8 | 8-bit signed integer | Yes | Yes | Yes | Yes |
| UINT8 | 8-bit unsigned integer | Yes | Yes | Yes | Yes |
| INT16 | 16-bit signed integer | Yes | Yes | Yes | Yes |
| UINT16 | 16-bit unsigned integer | Yes | Yes | Yes | Yes |
| INTEGER | 32-bit signed integer | Yes | Yes | Yes | Yes |
| UINT32 | 32-bit unsigned integer | Yes | Yes | Yes | Yes |
| INT64 | 64-bit signed integer | Yes | Yes | Yes | Yes |
| UINT64 | 64-bit unsigned integer | Yes | Yes | Yes | Yes |
| FLOAT | Single-precision 32-bit floating point | Yes | Yes | Yes | No |
| DOUBLE | Double-precision 64-bit floating point | Yes | Yes | Yes | No |
FLOAT and DOUBLE do not support inverted indexes.
Geographic types
| Type | Description | Multi-value | Forward index | Summary index | Inverted index |
|---|---|---|---|---|---|
| LOCATION | A single point defined by longitude and latitude. | Yes | Yes | Yes | Yes |
| LINE | A polyline defined by an ordered sequence of points. The first value is the number of points. | Yes | Yes | Yes | Yes |
| POLYGON | A polygon defined by one or more polylines. Each polyline starts with its point count. | Yes | Yes | Yes | Yes |
Value formats
LOCATION — location={Longitude} {Latitude}
location=116 40LINE — line=location,location,...^]
line=116 40,117 41,118 42 ^]POLYGON — polygon=location1,location2,...location1^]
Date and time types
| Type | Description | Format | Multi-value | Forward index | Summary index | Inverted index |
|---|---|---|---|---|---|---|
| DATE | A calendar date. | year-month-day | No | No | Yes | Yes |
| TIME | A time of day. Milliseconds are optional. | hour:minute:second[.milliseconds] | No | No | Yes | Yes |
| TIMESTAMP | A combined date and time with an optional time zone offset. Defaults to UTC. | {DATE} {TIME} [TIMEZONE] | No | No | Yes | Yes |
Value formats
DATE
2020-08-19TIME — milliseconds are optional.
12:00:00
11:40:00.234TIMESTAMP — the time zone offset is optional. The default time zone is Coordinated Universal Time (UTC) and is configurable.
2020-08-19 11:40:00.234
2020-08-19 11:40:00.234+0800