Class VectorFilterMode
java.lang.Object
com.azure.core.util.ExpandableStringEnum<VectorFilterMode>
com.azure.search.documents.models.VectorFilterMode
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class VectorFilterMode
extends com.azure.core.util.ExpandableStringEnum<VectorFilterMode>
Determines whether or not filters are applied before or after the vector search is performed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VectorFilterModeThe filter will be applied after the candidate set of vector results is returned.static final VectorFilterModeThe filter will be applied before the search query.static final VectorFilterModeThe filter will be applied after the global top-k candidate set of vector results is returned. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorFilterModefromString(String name) Creates or finds a VectorFilterMode from its string representation.static Collection<VectorFilterMode> values()Gets known VectorFilterMode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
POST_FILTER
The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. -
PRE_FILTER
The filter will be applied before the search query. -
STRICT_POST_FILTER
The filter will be applied after the global top-k candidate set of vector results is returned. This will result in fewer results than requested by the parameter 'k'.
-
-
Constructor Details
-
VectorFilterMode
Deprecated.Use thefromString(String)factory method.Creates a new instance of VectorFilterMode value.
-
-
Method Details
-
fromString
Creates or finds a VectorFilterMode from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding VectorFilterMode.
-
values
Gets known VectorFilterMode values.- Returns:
- known VectorFilterMode values.
-
fromString(String)factory method.