创建多元索引后,使用ListSearchIndex接口可以获取当前实例下或某个数据表关联的所有多元索引的列表信息。
前提条件
接口
/**
* 获取该数据表下所有的多元索引名称。
* @api
*
* @param [] $request
* 请求参数,数据表名称。
* @return [] 请求返回。
* @throws OTSClientException 当参数检查出错或服务端返回校验出错时抛出异常。
* @throws OTSServerException 当OTS服务端返回错误时抛出异常。
* @example "src/examples/ListSearchIndex.php"
*/
public function listSearchIndex(array $request)
参数
参数 | 说明 |
---|---|
table_name | 数据表名称,可以为空。
|
示例
$request = array(
'table_name' => 'php_sdk_test',
);
$response = $otsClient->listSearchIndex($request);