Google Cloud Vector Search V1 Client - Class TextRecordSpec (0.9.0)

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

The record spec for text search.

Generated from protobuf message google.cloud.vectorsearch.v1.VertexRanker.TextRecordSpec

Namespace

Google \ Cloud \ VectorSearch \ V1 \ VertexRanker

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ query string

Required. The query against which the records are ranked and scored.

↳ title_template string

Optional. The template used to generate the record's title.

↳ content_template string

Optional. The template used to generate the record's content.

getQuery

Required. The query against which the records are ranked and scored.

Returns
Type Description
string

setQuery

Required. The query against which the records are ranked and scored.

Parameter
Name Description
var string
Returns
Type Description
$this

getTitleTemplate

Optional. The template used to generate the record's title.

Returns
Type Description
string

setTitleTemplate

Optional. The template used to generate the record's title.

Parameter
Name Description
var string
Returns
Type Description
$this

getContentTemplate

Optional. The template used to generate the record's content.

Returns
Type Description
string

setContentTemplate

Optional. The template used to generate the record's content.

Parameter
Name Description
var string
Returns
Type Description
$this