All Products
Search
Document Center

Tablestore:List search indexes

Last Updated:Mar 05, 2024

After you create search indexes for a data table, you can call the ListSearchIndex operation to list the search indexes that are created for the data table.

Prerequisites

Parameters

Parameter

Description

table_name

The name of the data table. This parameter is optional.

  • If you specify this parameter, all search indexes that are created for the data table are returned.

  • If you do not specify this parameter, all search indexes in the current instance are returned.

Examples

The following sample code shows how to list search indexes that are created for a table.

# Specify the name of the data table. 
for table, index_name in client.list_search_index("<TABLE_NAME>"):
    print(table, index_name)

References