IndexSetting

更新时间:
复制 MD 格式

IndexSetting defines the configuration for a search index, including the routing fields that control data distribution across partitions.

Data structure

message IndexSetting {
    repeated string routing_fields = 2;
}

Name

Type

Required

Description

routing_fields

string

No

Custom routing fields. Specify one or more primary key columns as routing fields. In most cases, one routing field is sufficient. If multiple routing fields are specified, their values are concatenated to form the routing key.

When data is written to the search index, the system uses routing field values to determine data distribution. Data with the same routing key is indexed to the same partition.

Related operations

CreateSearchIndex