Method: projects.locations.collections.dataObjects.search

搜索数据对象。

HTTP 请求

POST https://vectorsearch.googleapis.com/v1/{parent}/dataObjects:search

路径参数

参数
parent

string

必需。要搜索的集合的资源名称。格式:projects/{project}/locations/{location}/collections/{collection}

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "pageSize": integer,
  "pageToken": string,

  // Union field search_type can be only one of the following:
  "vectorSearch": {
    object (VectorSearch)
  },
  "semanticSearch": {
    object (SemanticSearch)
  },
  "textSearch": {
    object (TextSearch)
  }
  // End of list of possible types for union field search_type.
}
字段
pageSize

integer

可选。标准列表页面大小。

pageToken

string

可选。标准列表页面令牌。 通常通过上一个 DataObjectSearchService.SearchDataObjects 调用的 SearchDataObjectsResponse.next_page_token 获取。

联合字段 search_type。要搜索的查询。search_type 只能是下列其中一项:

响应正文

如果成功,则响应正文包含一个 SearchDataObjectsResponse 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • vectorsearch.dataObjects.search

如需了解详情,请参阅 IAM 文档