Vector Search v1 API - Class StructuredQuery (1.3.0)

public sealed class StructuredQuery : IMessage<StructuredQuery>, IEquatable<StructuredQuery>, IDeepCloneable<StructuredQuery>, IBufferMessage, IMessage

Reference documentation and code samples for the Vector Search v1 API class StructuredQuery.

A structured query for text search. Allows expressing field-targeted text queries combined via boolean operators, with optional per-node boosting.

Inheritance

object > StructuredQuery

Namespace

Google.Cloud.VectorSearch.V1

Assembly

Google.Cloud.VectorSearch.V1.dll

Constructors

StructuredQuery()

public StructuredQuery()

StructuredQuery(StructuredQuery)

public StructuredQuery(StructuredQuery other)
Parameter
Name Description
other StructuredQuery

Properties

Boost

public float Boost { get; set; }

Optional. Optional multiplier applied to this query node's contribution to the final relevance score. Must be non-negative; if unset or 0, defaults to 1.0. Values greater than 1.0 increase its influence on ranking, values between 0.0 and 1.0 decrease it.

Property Value
Type Description
float

Combine

public CombinedQuery Combine { get; set; }

Optional. A query that combines multiple sub-queries with a boolean operator.

Property Value
Type Description
CombinedQuery

QueryTypeCase

public StructuredQuery.QueryTypeOneofCase QueryTypeCase { get; }
Property Value
Type Description
StructuredQueryQueryTypeOneofCase

Text

public TextQuery Text { get; set; }

Optional. A leaf-level text query.

Property Value
Type Description
TextQuery

Unary

public UnaryQuery Unary { get; set; }

Optional. A query that applies a unary operator to a sub-query.

Property Value
Type Description
UnaryQuery