Google Cloud Vector Search V1 Client - Class SearchResult (0.4.0)

Reference documentation and code samples for the Google Cloud Vector Search V1 Client class SearchResult.

A single search result.

Generated from protobuf message google.cloud.vectorsearch.v1.SearchResult

Namespace

Google \ Cloud \ VectorSearch \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ data_object
DataObject

Output only. The matching data object.

↳ distance
float

Output only. Similarity distance or ranker score returned by BatchSearchDataObjects.

getDataObject

Output only. The matching data object.

Returns
Type
Description
DataObject |null

hasDataObject

clearDataObject

setDataObject

Output only. The matching data object.

Parameter
Name
Description
Returns
Type
Description
$this

getDistance

Output only. Similarity distance or ranker score returned by BatchSearchDataObjects.

Returns
Type
Description
float

hasDistance

clearDistance

setDistance

Output only. Similarity distance or ranker score returned by BatchSearchDataObjects.

Parameter
Name
Description
var
float
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: