VectorSearch Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.VectorSearch

Implements

public final class VectorSearch
implements JsonSerializable<VectorSearch>

Contains configuration options related to vector search.

Constructor Summary

Constructor Description
VectorSearch()

Creates an instance of VectorSearch class.

Method Summary

Modifier and Type Method and Description
static VectorSearch fromJson(JsonReader jsonReader)

Reads an instance of VectorSearch from the JsonReader.

List<VectorSearchAlgorithmConfiguration> getAlgorithms()

Get the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.

List<VectorSearchProfile> getProfiles()

Get the profiles property: Defines combinations of configurations to use with vector search.

VectorSearch setAlgorithms(VectorSearchAlgorithmConfiguration[] algorithms)

Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.

VectorSearch setAlgorithms(List<VectorSearchAlgorithmConfiguration> algorithms)

Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.

VectorSearch setProfiles(VectorSearchProfile[] profiles)

Set the profiles property: Defines combinations of configurations to use with vector search.

VectorSearch setProfiles(List<VectorSearchProfile> profiles)

Set the profiles property: Defines combinations of configurations to use with vector search.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VectorSearch

public VectorSearch()

Creates an instance of VectorSearch class.

Method Details

fromJson

public static VectorSearch fromJson(JsonReader jsonReader)

Reads an instance of VectorSearch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorSearch if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VectorSearch.

getAlgorithms

public List getAlgorithms()

Get the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.

Returns:

the algorithms value.

getProfiles

public List getProfiles()

Get the profiles property: Defines combinations of configurations to use with vector search.

Returns:

the profiles value.

setAlgorithms

public VectorSearch setAlgorithms(VectorSearchAlgorithmConfiguration[] algorithms)

Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.

Parameters:

algorithms - the algorithms value to set.

Returns:

the VectorSearch object itself.

setAlgorithms

public VectorSearch setAlgorithms(List algorithms)

Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.

Parameters:

algorithms - the algorithms value to set.

Returns:

the VectorSearch object itself.

setProfiles

public VectorSearch setProfiles(VectorSearchProfile[] profiles)

Set the profiles property: Defines combinations of configurations to use with vector search.

Parameters:

profiles - the profiles value to set.

Returns:

the VectorSearch object itself.

setProfiles

public VectorSearch setProfiles(List profiles)

Set the profiles property: Defines combinations of configurations to use with vector search.

Parameters:

profiles - the profiles value to set.

Returns:

the VectorSearch object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to