SearchDataObjectsResponse

搜尋要求的相關回應。

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

object (SearchResult)

僅供輸出。符合搜尋條件的 dataObject 清單。

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}