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}