Table of Contents

Class CollectionFindAndRerankSortBuilder<T>

Namespace
DataStax.AstraDB.DataApi.Core.Query
Assembly
DataStax.AstraDB.DataApi.dll

A sort builder specific for a FindAndRerank operation on a collection.

public class CollectionFindAndRerankSortBuilder<T> : FindAndRerankSortBuilder<T>

Type Parameters

T

The type of the document

Inheritance
CollectionFindAndRerankSortBuilder<T>
Inherited Members

Methods

Hybrid(float[], string)

Adds a hybrid sort by specifying a vector for the vector sub-search and a string for the lexical sub-search.

public CollectionFindAndRerankSortBuilder<T> Hybrid(float[] vector, string lexical)

Parameters

vector float[]

The query vector for the ANN sub-search. The dimension must match the collection's.

lexical string

The query string for the lexical sub-search.

Returns

CollectionFindAndRerankSortBuilder<T>

The collection sort builder.

Hybrid(string)

Adds a hybrid sort by specifying a string value to use as query string both for the vector and the lexical sub-searches. Requires vectorize on the collection.

public CollectionFindAndRerankSortBuilder<T> Hybrid(string hybrid)

Parameters

hybrid string

The query string for the sub-searches.

Returns

CollectionFindAndRerankSortBuilder<T>

The collection sort builder.

Hybrid(string, string)

Adds a hybrid sort by specifying two different query strings, one for the vector sub-search (through vectorize, which must be configured for the collection) and one for the lexical sub-search.

public CollectionFindAndRerankSortBuilder<T> Hybrid(string vectorize, string lexical)

Parameters

vectorize string

The query string for the ANN sub-search.

lexical string

The query string for the lexical sub-search.

Returns

CollectionFindAndRerankSortBuilder<T>

The collection sort builder.