After you create a search index, you can query the list of all search indexes created in the current instance or associated with a table.
Operations
You can call the ListSearchIndex operation to list search indexes.
Use Tablestore SDKs
You can use the following Tablestore SDKs to implement search index:
- Tablestore SDK for Java: List search indexes
- Tablestore SDK for Go: List search indexes
- Tablestore SDK for Python: List search indexes
- Tablestore SDK for Node.js: List search indexes
- Tablestore SDK for .NET: List search indexes
- Tablestore SDK for PHP: List search indexes
Parameters
Parameter | Description |
---|---|
tableName | Optional. This parameter specifies the name of the table.
|
Examples
private static List<SearchIndexInfo> listSearchIndex(SyncClient client) {
ListSearchIndexRequest request = new ListSearchIndexRequest();
request.setTableName(TABLE_NAME); // Set the name of the table.
return client.listSearchIndex(request).getIndexInfos(); // Return all search indexes associated with the table.
}