Class SearchResultItem (0.1.5)

SearchResultItem(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Search result contains asset name and corresponding time ranges.

Attributes

Name Description
asset str
The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
segments MutableSequence[google.cloud.visionai_v1.types.Partition.TemporalPartition]
The matched asset segments. Deprecated: please use singular segment field.
segment google.cloud.visionai_v1.types.Partition.TemporalPartition
The matched asset segment.
relevance float
Available to IMAGE corpus types. Relevance of this SearchResultItem to user search query (text query or image query). By default this represents cosine similarity between the query and the retrieved media content. The value is in the range of [-1, 1]. Note that search ranking is not only decided by this relevance score, but also other factors such as the match of annotations.
requested_annotations MutableSequence[google.cloud.visionai_v1.types.Annotation]
Search result annotations specified by result_annotation_keys in search request.
annotation_matching_results MutableSequence[google.cloud.visionai_v1.types.AnnotationMatchingResult]
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.