You can call the ListSearchIndex operation to obtain indexes created in the current instance or associated with a table.
Prerequisites
- A Tablestore client is initialized. For more information, see Initialization.
- A data table is created. Data is written to the table.
- A search index is created for the data table. For more information, see Create search indexes.
Parameters
Parameter | Description |
---|---|
tableName | Optional. The name of the table.
|
Examples
client.listSearchIndex({
tableName: TABLE_NAME, // Set the table name.
}, function (err, data) {
if (err) {
console.log('error:', err);
return;
}
console.log('success:', JSON.stringify(data, null, 2));
});