SearchDataObjectsResponse

对搜索请求的响应。

JSON 表示法
{
  "results": [
    {
      object (SearchResult)
    }
  ],
  "nextPageToken": string,
  "searchResponseMetadata": {
    object (SearchResponseMetadata)
  }
}
字段
results[]

object (SearchResult)

仅限输出。符合搜索条件的数据对象列表。

nextPageToken

string

仅限输出。用于检索下一页结果的令牌。 传递给 [DataObjectSearchService.SearchDataObjectsRequest.page_token][] 即可获取该页面。

searchResponseMetadata

object (SearchResponseMetadata)

仅限输出。有关搜索执行的元数据。

SearchResult

单个搜索结果。

JSON 表示法
{
  "dataObject": {
    object (DataObject)
  },
  "distance": number
}
字段
dataObject

object (DataObject)

仅限输出。匹配的数据对象。

distance

number

仅限输出。相似性距离。

SearchResponseMetadata

有关搜索执行的元数据。

JSON 表示法
{

  // Union field index_type can be only one of the following:
  "usedIndex": {
    object (IndexInfo)
  },
  "usedKnn": boolean
  // End of list of possible types for union field index_type.
}
字段
联合字段 index_type。所用指数的类型。index_type 只能是下列其中一项:
usedIndex

object (IndexInfo)

表示搜索使用了特定索引。

usedKnn

boolean

仅限输出。如果为 true,则表示搜索使用了系统的默认 K-最近邻 (KNN) 索引引擎。

IndexInfo

表示用于搜索的索引的消息。

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

string

仅限输出。用于搜索的索引的资源名称。格式:projects/{project}/locations/{location}/collections/{collection}/indexes/{index}