Partager via


VectorSearchVectorizer Class

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

Implements

public class VectorSearchVectorizer
implements JsonSerializable<VectorSearchVectorizer>

Specifies the vectorization method to be used during query time.

Constructor Summary

Constructor Description
VectorSearchVectorizer(String vectorizerName)

Creates an instance of VectorSearchVectorizer class.

Method Summary

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

Reads an instance of VectorSearchVectorizer from the JsonReader.

VectorSearchVectorizerKind getKind()

Get the kind property: The name of the kind of vectorization method being configured for use with vector search.

String getVectorizerName()

Get the vectorizerName property: The name to associate with this particular vectorization method.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VectorSearchVectorizer

public VectorSearchVectorizer(String vectorizerName)

Creates an instance of VectorSearchVectorizer class.

Parameters:

vectorizerName - the vectorizerName value to set.

Method Details

fromJson

public static VectorSearchVectorizer fromJson(JsonReader jsonReader)

Reads an instance of VectorSearchVectorizer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorSearchVectorizer 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.

getKind

public VectorSearchVectorizerKind getKind()

Get the kind property: The name of the kind of vectorization method being configured for use with vector search.

Returns:

the kind value.

getVectorizerName

public String getVectorizerName()

Get the vectorizerName property: The name to associate with this particular vectorization method.

Returns:

the vectorizerName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to