使用DeleteSearchIndex接口可以删除指定数据表的一个多元索引。
前提条件
参数
参数 | 说明 |
---|---|
TableName | 数据表名称。 |
IndexName | 多元索引名称。 |
示例
/// <summary>
/// 删除多元索引。
/// </summary>
/// <param name="otsClient"></param>
public static void DeleteSearchIndex(OTSClient otsClient)
{
//设置数据表名和多元索引名称。
DeleteSearchIndexRequest request = new DeleteSearchIndexRequest(TableName, IndexName);
//调用otsClient删除多元索引。
DeleteSearchIndexResponse response = otsClient.DeleteSearchIndex(request);
}