Built-in field types for Retrieval Engine Edition

更新时间:
复制 MD 格式

Field types

Field type

Description

Supports multiple values

Supports forward index

This can be used for the summary index.

It can be used for inverted indexes.

TEXT

Text type

No

No

Yes

Yes

STRING

String type

Yes

Yes

Yes

Yes

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

32-bit floating-point (float)

Yes

Yes

Yes

No

DOUBLE

64-bit floating-point (double)

Yes

Yes

Yes

No

LOCATION

Point. Stores the longitude and latitude of a point.

Yes

Yes

Yes

Yes

LINE

Line. Stores the longitudes and latitudes of points on a polyline. The first value is the point count.

Yes

Yes

Yes

Yes

POLYGON

Polygon. A combination of polylines. Stores the longitudes and latitudes of vertices. For each polyline, the first value is the point count.

Yes

Yes

Yes

Yes

DATE

Date type

No

No

Yes

Yes

TIME

Time type

No

No

Yes

Yes

TIMESTAMP

Timestamp type.

{DATE} {TIME} [TIMEZONE (optional)]

No

No

Yes

Yes

  • You must specify an analyzer for TEXT fields in the schema configuration.

  • LOCATION: location=LON LAT. Example: location=116 40

  • LINE: line=location,location,location...^]location,location... Example: line=116 40,117 41,118 42^]...

  • POLYGON: polygon=location1,location2,...location1^]...

  • DATE: The format is year-month-day. For example: 2020-08-19.

  • TIME: The format is hour:minute:second[.milliSeconds]. For example: 11:40:00.234 or 12:00:00.

  • TIMESTAMP: The format is {DATE} {TIME} [TIMEZONE]. For example: 2020-08-19 11:40:00.234 or 2020-08-19 11:40:00.234 +0800. The TIMEZONE parameter is optional. The default time zone is GMT/UTC and is configurable.