All Products
Search
Document Center

Tablestore:IndexSetting

Last Updated:Apr 29, 2025

IndexSetting specifies the configuration information of a search index, such as the routing fields.

Data structure

message IndexSetting {
    repeated string routing_fields = 2;
}

Name

Type

Required

Description

routing_fields

string

No

The custom routing fields. You can specify some primary key columns as the routing fields. In most cases, you only need to specify one routing field. If you specify multiple routing fields, the system concatenates the values of the routing fields into one value as the routing key.

When data is written to the search index, the system calculates the distribution of the data based on the values of the routing fields. Data that has the same routing key value is indexed to the same partition.

Related operations

CreateSearchIndex