SearchResultItem

搜尋結果包含資產名稱和對應的時間範圍。

JSON 表示法
{
  "asset": string,
  "segments": [
    {
      object (TemporalPartition)
    }
  ],
  "segment": {
    object (TemporalPartition)
  },
  "relevance": number,
  "requestedAnnotations": [
    {
      object (Annotation)
    }
  ],
  "annotationMatchingResults": [
    {
      object (AnnotationMatchingResult)
    }
  ]
}
欄位
asset

string

素材資源的資源名稱。Form: 'projects/{project_number}/locations/{locationId}/corpora/{corpus_id}/assets/{assetId}'

segments[]
(deprecated)

object (TemporalPartition)

相符的素材資源區隔。已淘汰:請使用單一 segment 欄位。

segment

object (TemporalPartition)

相符的素材資源區隔。

relevance

number

SearchResultItem 與使用者搜尋要求的關聯性。目前僅適用於圖片倉庫,預設代表餘弦相似度。日後,我們可能會在搜尋要求中要求其他指標,例如「內積」或「主題性」。

requestedAnnotations[]

object (Annotation)

搜尋要求中由 resultAnnotationKeys 指定的搜尋結果註解。

annotationMatchingResults[]

object (AnnotationMatchingResult)

與這個搜尋結果項目相關的條件或面向選取註解相符結果。只包含條件或 facetSelections 的結果,且 fetchMatchedAnnotations=true。

AnnotationMatchingResult

儲存每個搜尋結果項目的條件註解比對結果。

JSON 表示法
{
  "criteria": {
    object (Criteria)
  },
  "matchedAnnotations": [
    {
      object (Annotation)
    }
  ],
  "status": {
    object (Status)
  }
}
欄位
criteria

object (Criteria)

用於比對的條件。可以是輸入的搜尋條件,或是從切面選項轉換的條件。

matchedAnnotations[]

object (Annotation)

符合條件的註解。

status

object (Status)

比對結果的狀態。可能的值:FAILED_PRECONDITION - 條件不符合比對資格。完成 - 系統會進行比對。