すべてのプロダクト
Search
ドキュメントセンター

Tablestore:多次元インデックス情報のクエリ

最終更新日:Aug 08, 2026

Tablestore SDK for Go を使用して、検索インデックスのスキーマ、同期ステータス、メータリング情報、および TTL を照会します。

前提条件

Tablestore Go SDK をインストールし、クライアントを初期化します。

説明

DescribeSearchIndex を呼び出して、多次元インデックスのスキーマおよびランタイム情報をクエリします。IncludeSyncStat を true に設定すると、データ同期ステータスが返されます。

func (client *tablestore.TableStoreClient) DescribeSearchIndex(request *tablestore.DescribeSearchIndexRequest) (*tablestore.DescribeSearchIndexResponse, error)
response, err := client.DescribeSearchIndex(&tablestore.DescribeSearchIndexRequest{
    TableName:       "example_table",
    IndexName:       "example_index",
    IncludeSyncStat: proto.Bool(true),
})
if err != nil {
    log.Fatal(err)
}

fmt.Println(response.Schema)
fmt.Println(response.SyncStat)
fmt.Println(response.TimeToLive)

パラメーター

Name

Type

Description

TableName (必須)

string

データテーブルの名前です。

IndexName (必須)

string

検索インデックスの名前。

IncludeSyncStat (オプション)

*bool

データ同期ステータスを返すかどうかを指定します。デフォルト値は false です。

応答

Name

Type

Description

Schema

*tablestore.IndexSchema

検索インデックスのスキーマ。

SyncStat

*tablestore.SyncStat

同期ステータスです。FULL はフル同期を示し、INCR は増分同期を示します。

MeteringInfo

*tablestore.MeteringInfo

インデックスのストレージサイズ、行数、予約済み読み取り CU、および統計情報の更新時刻です。

QueryFlowWeights

[]*tablestore.QueryFlowWeight

動的スキーマ変更中のクエリトラフィックの重みです。

CreateTime

int64

インデックス作成時刻です。

TimeToLive

int32

インデックスデータの TTL(秒単位)です。