SearchHint

代表搜尋索引引擎的提示。

JSON 表示法
{

  // Union field index_type can be only one of the following:
  "useIndex": {
    object (IndexHint)
  },
  "useKnn": boolean
  // End of list of possible types for union field index_type.
}
欄位
聯集欄位 index_type。要使用的索引類型。index_type 只能是下列其中一個設定:
useIndex

object (IndexHint)

選用。指定搜尋應使用特定索引。

useKnn

boolean

選用。如果設為 true,搜尋作業會使用系統預設的 K 近鄰 (KNN) 索引引擎。

IndexHint

指定用於搜尋的索引。

JSON 表示法
{
  "name": string
}
欄位
name

string

這是必要旗標,用於搜尋的索引資源名稱。索引必須位於相同專案、位置和集合。格式:projects/{project}/locations/{location}/collections/{collection}/indexes/{index}