VectorSearchProfile Class

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

Implements

public final class VectorSearchProfile
implements JsonSerializable<VectorSearchProfile>

Defines a combination of configurations to use with vector search.

Constructor Summary

Constructor Description
VectorSearchProfile(String name, String algorithmConfigurationName)

Creates an instance of VectorSearchProfile class.

Method Summary

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

Reads an instance of VectorSearchProfile from the JsonReader.

String getAlgorithmConfigurationName()

Get the algorithmConfigurationName property: The name of the vector search algorithm configuration that specifies the algorithm and optional parameters.

String getName()

Get the name property: The name to associate with this particular vector search profile.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VectorSearchProfile

public VectorSearchProfile(String name, String algorithmConfigurationName)

Creates an instance of VectorSearchProfile class.

Parameters:

name - the name value to set.
algorithmConfigurationName - the algorithmConfigurationName value to set.

Method Details

fromJson

public static VectorSearchProfile fromJson(JsonReader jsonReader)

Reads an instance of VectorSearchProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAlgorithmConfigurationName

public String getAlgorithmConfigurationName()

Get the algorithmConfigurationName property: The name of the vector search algorithm configuration that specifies the algorithm and optional parameters.

Returns:

the algorithmConfigurationName value.

getName

public String getName()

Get the name property: The name to associate with this particular vector search profile.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to