Todos os produtos
Search
Central de documentação

Tablestore:Listar índices de pesquisa

Última atualização: Jul 03, 2026

Após criar índices de pesquisa para uma tabela de dados, chame a operação ListSearchIndex para listar os índices de pesquisa criados nessa tabela.

Pré-requisitos

Operação da API

/**
 * Query the names of all search indexes that are created for a data table. 
 * @api
 *
 * @param [] $request
 *            The request parameter, which is the name of the data table. 
 * @return [] The response. 
 * @throws OTSClientException The exception that is thrown when a parameter error occurs or the Tablestore server returns a verification error. 
 * @throws OTSServerException The exception that is thrown when the Tablestore server returns an error. 
 * @example "src/examples/ListSearchIndex.php"
 */
public function listSearchIndex(array $request)     
            

Parâmetros

Parâmetro

Descrição

table_name

Nome da tabela de dados. Este parâmetro é obrigatório.

Exemplos

O código de exemplo a seguir demonstra como listar os índices de pesquisa criados para uma tabela:

$request = array(
    'table_name' => 'php_sdk_test',
);
$response = $otsClient->listSearchIndex($request);

Referências