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 |
getProfiles()
Get the profiles property: Defines combinations of configurations to use with vector search. |
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 |
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. |
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:
getProfiles
public List
Get the profiles property: Defines combinations of configurations to use with vector search.
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:
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:
toJson
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for