SearchResultItem

Search result contains asset name and corresponding time ranges.

JSON representation
{
  "asset": string,
  "segments": [
    {
      object (TemporalPartition)
    }
  ],
  "segment": {
    object (TemporalPartition)
  },
  "relevance": number,
  "requestedAnnotations": [
    {
      object (Annotation)
    }
  ],
  "annotationMatchingResults": [
    {
      object (AnnotationMatchingResult)
    }
  ]
}
Fields
asset

string

The resource name of the asset. Form: 'projects/{project_number}/locations/{locationId}/corpora/{corpus_id}/assets/{assetId}'

segments[]
(deprecated)

object (TemporalPartition)

The matched asset segments. Deprecated: please use singular segment field.

segment

object (TemporalPartition)

The matched asset segment.

relevance

number

Relevance of this SearchResultItem to user search request. Currently available only in Image Warehouse, and by default represents cosine similarity. In the future can be other measures such as "dot product" or "topicality" requested in the search request.

requestedAnnotations[]

object (Annotation)

Search result annotations specified by resultAnnotationKeys in search request.

annotationMatchingResults[]

object (AnnotationMatchingResult)

Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facetSelections with fetchMatchedAnnotations=true.

AnnotationMatchingResult

Stores the criteria-annotation matching results for each search result item.

JSON representation
{
  "criteria": {
    object (Criteria)
  },
  "matchedAnnotations": [
    {
      object (Annotation)
    }
  ],
  "status": {
    object (Status)
  }
}
Fields
criteria

object (Criteria)

The criteria used for matching. It can be an input search criteria or a criteria converted from a facet selection.

matchedAnnotations[]

object (Annotation)

Matched annotations for the criteria.

status

object (Status)

Status of the match result. Possible values: FAILED_PRECONDITION - the criteria is not eligible for match. OK - matching is performed.