你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VectorSearchOptions Class
- java.
lang. Object - com.
azure. search. documents. models. VectorSearchOptions
- com.
public final class VectorSearchOptions
Parameters for performing vector searches.
Constructor Summary
Constructor | Description |
---|---|
VectorSearchOptions() |
Creates a new instance of VectorSearchOptions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Vector |
getFilterMode()
Gets the filter mode to apply to vector queries. |
List<Vector |
getQueries()
Gets the list of vector queries to perform. |
Vector |
setFilterMode(VectorFilterMode filterMode)
Sets the filter mode to apply to vector queries. |
Vector |
setQueries(VectorQuery[] queries)
Sets the list of vector queries to perform. |
Vector |
setQueries(List<VectorQuery> queries)
Sets the list of vector queries to perform. |
Methods inherited from java.lang.Object
Constructor Details
VectorSearchOptions
public VectorSearchOptions()
Creates a new instance of VectorSearchOptions.
Method Details
getFilterMode
public VectorFilterMode getFilterMode()
Gets the filter mode to apply to vector queries.
Returns:
getQueries
public List
Gets the list of vector queries to perform.
Returns:
setFilterMode
public VectorSearchOptions setFilterMode(VectorFilterMode filterMode)
Sets the filter mode to apply to vector queries.
Parameters:
Returns:
setQueries
public VectorSearchOptions setQueries(VectorQuery[] queries)
Sets the list of vector queries to perform.
Parameters:
Returns:
setQueries
public VectorSearchOptions setQueries(List
Sets the list of vector queries to perform.
Parameters:
Returns: