Class VectorSearch
java.lang.Object
com.azure.search.documents.indexes.models.VectorSearch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorSearch>
public final class VectorSearch
extends Object
implements com.azure.json.JsonSerializable<VectorSearch>
Contains configuration options related to vector search.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorSearchfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VectorSearch from the JsonReader.Get the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.Get the compressions property: Contains configuration options specific to the compression method used during indexing or querying.Get the profiles property: Defines combinations of configurations to use with vector search.Get the vectorizers property: Contains configuration options on how to vectorize text vector queries.setAlgorithms(VectorSearchAlgorithmConfiguration... algorithms) Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.setAlgorithms(List<VectorSearchAlgorithmConfiguration> algorithms) Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.setCompressions(VectorSearchCompression... compressions) Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying.setCompressions(List<VectorSearchCompression> compressions) Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying.setProfiles(VectorSearchProfile... profiles) Set the profiles property: Defines combinations of configurations to use with vector search.setProfiles(List<VectorSearchProfile> profiles) Set the profiles property: Defines combinations of configurations to use with vector search.setVectorizers(VectorSearchVectorizer... vectorizers) Set the vectorizers property: Contains configuration options on how to vectorize text vector queries.setVectorizers(List<VectorSearchVectorizer> vectorizers) Set the vectorizers property: Contains configuration options on how to vectorize text vector queries.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VectorSearch
public VectorSearch()Creates an instance of VectorSearch class.
-
-
Method Details
-
getProfiles
Get the profiles property: Defines combinations of configurations to use with vector search.- Returns:
- the profiles value.
-
setProfiles
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.
-
getAlgorithms
Get the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.- Returns:
- the algorithms value.
-
setAlgorithms
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.
-
getVectorizers
Get the vectorizers property: Contains configuration options on how to vectorize text vector queries.- Returns:
- the vectorizers value.
-
setVectorizers
Set the vectorizers property: Contains configuration options on how to vectorize text vector queries.- Parameters:
vectorizers- the vectorizers value to set.- Returns:
- the VectorSearch object itself.
-
getCompressions
Get the compressions property: Contains configuration options specific to the compression method used during indexing or querying.- Returns:
- the compressions value.
-
setCompressions
Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying.- Parameters:
compressions- the compressions value to set.- Returns:
- the VectorSearch object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VectorSearch>- Throws:
IOException
-
fromJson
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.
-
setProfiles
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.
-
setAlgorithms
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.
-
setCompressions
Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying.- Parameters:
compressions- the compressions value to set.- Returns:
- the VectorSearch object itself.
-
setVectorizers
Set the vectorizers property: Contains configuration options on how to vectorize text vector queries.- Parameters:
vectorizers- the vectorizers value to set.- Returns:
- the VectorSearch object itself.
-