你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VectorSearchOptions Class

  • java.lang.Object
    • com.azure.search.documents.models.VectorSearchOptions

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
VectorFilterMode getFilterMode()

Gets the filter mode to apply to vector queries.

List<VectorQuery> getQueries()

Gets the list of vector queries to perform.

VectorSearchOptions setFilterMode(VectorFilterMode filterMode)

Sets the filter mode to apply to vector queries.

VectorSearchOptions setQueries(VectorQuery[] queries)

Sets the list of vector queries to perform.

VectorSearchOptions 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:

The filter mode to apply to vector queries.

getQueries

public List getQueries()

Gets the list of vector queries to perform.

Returns:

The list of vector queries to perform.

setFilterMode

public VectorSearchOptions setFilterMode(VectorFilterMode filterMode)

Sets the filter mode to apply to vector queries.

Parameters:

filterMode - The filter mode to apply to vector queries.

Returns:

The VectorSearchOptions object itself.

setQueries

public VectorSearchOptions setQueries(VectorQuery[] queries)

Sets the list of vector queries to perform.

Parameters:

queries - The list of vector queries to perform.

Returns:

The VectorSearchOptions object itself.

setQueries

public VectorSearchOptions setQueries(List queries)

Sets the list of vector queries to perform.

Parameters:

queries - The list of vector queries to perform.

Returns:

The VectorSearchOptions object itself.

Applies to