VectorSearch Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. VectorSearch
- com.
Implements
public final class VectorSearch
implements JsonSerializable<VectorSearch>
Contains configuration options related to vector search.
Constructor Summary
Constructor | Description |
---|---|
VectorSearch() |
Creates an instance of Vector |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Vector |
fromJson(JsonReader jsonReader)
Reads an instance of Vector |
List<Vector |
getAlgorithms()
Get the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying. |
List<Vector |
getCompressions()
Get the compressions property: Contains configuration options specific to the compression method used during indexing or querying. |
List<Vector |
getProfiles()
Get the profiles property: Defines combinations of configurations to use with vector search. |
List<Vector |
getVectorizers()
Get the vectorizers property: Contains configuration options on how to vectorize text vector queries. |
Vector |
setAlgorithms(VectorSearchAlgorithmConfiguration[] algorithms)
Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying. |
Vector |
setAlgorithms(List<VectorSearchAlgorithmConfiguration> algorithms)
Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying. |
Vector |
setCompressions(VectorSearchCompression[] compressions)
Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying. |
Vector |
setCompressions(List<VectorSearchCompression> compressions)
Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying. |
Vector |
setProfiles(VectorSearchProfile[] profiles)
Set the profiles property: Defines combinations of configurations to use with vector search. |
Vector |
setProfiles(List<VectorSearchProfile> profiles)
Set the profiles property: Defines combinations of configurations to use with vector search. |
Vector |
setVectorizers(VectorSearchVectorizer[] vectorizers)
Set the vectorizers property: Contains configuration options on how to vectorize text vector queries. |
Vector |
setVectorizers(List<VectorSearchVectorizer> vectorizers)
Set the vectorizers property: Contains configuration options on how to vectorize text vector queries. |
Json |
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:
Returns:
Throws:
getAlgorithms
public List
Get the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.
Returns:
getCompressions
public List
Get the compressions property: Contains configuration options specific to the compression method used during indexing or querying.
Returns:
getProfiles
public List
Get the profiles property: Defines combinations of configurations to use with vector search.
Returns:
getVectorizers
public List
Get the vectorizers property: Contains configuration options on how to vectorize text vector queries.
Returns:
setAlgorithms
public VectorSearch setAlgorithms(VectorSearchAlgorithmConfiguration[] algorithms)
Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.
Parameters:
Returns:
setAlgorithms
public VectorSearch setAlgorithms(List
Set the algorithms property: Contains configuration options specific to the algorithm used during indexing or querying.
Parameters:
Returns:
setCompressions
public VectorSearch setCompressions(VectorSearchCompression[] compressions)
Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying.
Parameters:
Returns:
setCompressions
public VectorSearch setCompressions(List
Set the compressions property: Contains configuration options specific to the compression method used during indexing or querying.
Parameters:
Returns:
setProfiles
public VectorSearch setProfiles(VectorSearchProfile[] profiles)
Set the profiles property: Defines combinations of configurations to use with vector search.
Parameters:
Returns:
setProfiles
public VectorSearch setProfiles(List
Set the profiles property: Defines combinations of configurations to use with vector search.
Parameters:
Returns:
setVectorizers
public VectorSearch setVectorizers(VectorSearchVectorizer[] vectorizers)
Set the vectorizers property: Contains configuration options on how to vectorize text vector queries.
Parameters:
Returns:
setVectorizers
public VectorSearch setVectorizers(List
Set the vectorizers property: Contains configuration options on how to vectorize text vector queries.
Parameters:
Returns: