List search indexes

更新时间:
复制 MD 格式

After you create a search index, you can call the ListSearchIndex API to retrieve all search indexes for a specific data table.

Prerequisites

Parameters

Parameter

Description

table_name

The name of the data table. Leave this parameter blank to return all search indexes in the current instance.

  • If specified, the operation returns all search indexes for that table.

  • If left blank, the operation returns all search indexes in the current instance.

List search indexes for a table

The following example lists all search indexes for a specified table.

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

What's next