Method: projects.locations.collections.dataObjects.search

搜尋資料物件。

HTTP 要求

POST https://vectorsearch.googleapis.com/v1beta/{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 說明文件