SearchHint

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

JSON 表示法
{

  // Union field index_type can be only one of the following:
  "knnHint": {
    object (KnnHint)
  },
  "indexHint": {
    object (IndexHint)
  }
  // End of list of possible types for union field index_type.
}
字段
联合字段 index_type。要使用的索引的类型。index_type 只能是下列其中一项:
knnHint

object (KnnHint)

可选。如果设置,搜索将使用系统的默认 K 最近邻 (KNN) 索引引擎。

indexHint

object (IndexHint)

可选。指定搜索应使用特定索引。

KnnHint

此类型没有字段。

如果应在系统的默认 K 最近邻 (KNN) 索引引擎上显式执行搜索,则将使用 KnnHint。

IndexHint

用于指定搜索要使用的索引的消息。

JSON 表示法
{
  "name": string
}
字段
name

string

必需。用于搜索的索引的资源名称。索引必须位于同一项目、位置和集合中。格式:projects/{project}/locations/{location}/collections/{collection}/indexes/{index}