After you create search indexes, you can query all search indexes that are created for a data table.
API operation
You can call the ListSearchIndex operation to query search indexes.
Parameters
|
Parameter |
Description |
|
tableName |
The name of the data table. This parameter cannot be left empty. |
Methods
You can use the Tablestore console, Tablestore CLI, or Tablestore SDKs to query search indexes.
Before you query search indexes, make sure that the following preparations are made:
Use an Alibaba Cloud account or a RAM user with the required permissions for Table Store operations. To grant permissions to a RAM user, see Grant permissions to a RAM user by using a RAM policy.
If you use an SDK or a command-line tool, create an AccessKey for your Alibaba Cloud account or RAM user if you do not have one.
You have created a data table.
A Search Index has been created for the data table.
If you use an SDK, initialize the Tablestore Client.
If you use the command-line tool, download and start the tool, then configure the connection to your instance and select the target table. For more information, see Download the command-line tool, Start the tool and configure connection information, and Data table operations.
References
-
If you want to query details about a search index, such as the fields and schema of the search index, you can query the description of the search index. For more information, see Query the description of a search index.
-
If you no longer use a search index, you can delete the search index. For more information, see Delete search indexes.