DescribeSearchIndex

DescribeSearchIndex用于查询多元索引的描述信息,包括多元索引的字段信息以及一些索引配置等。示例代码:

/// <summary>
/// 查询多元索引的描述信息
/// </summary>
/// <param name="otsClient"></param>
public static void DescribeSearchIndex(OTSClient otsClient)
{
    //设置表名和索引名
    DescribeSearchIndexRequest request = new DescribeSearchIndexRequest(TableName, IndexName);

    DescribeSearchIndexResponse response = otsClient.DescribeSearchIndex(request);
    string serializedObjectString = JsonConvert.SerializeObject(response);
    Console.WriteLine(serializedObjectString); //输出response详细信息
}