VectorFilterMode Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. search. documents. models. VectorFilterMode
- com.
- com.
public final class VectorFilterMode
extends ExpandableStringEnum<VectorFilterMode>
Determines whether or not filters are applied before or after the vector search is performed.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Vector |
POST_FILTER
The filter will be applied after the candidate set of vector results is returned. |
|
static final
Vector |
PRE_FILTER
The filter will be applied before the search query. |
|
static final
Vector |
STRICT_POST_FILTER
The filter will be applied after the global top-k candidate set of vector results is returned. |
Constructor Summary
| Constructor | Description |
|---|---|
| VectorFilterMode() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Vector |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Vector |
fromString(String name)
Creates or finds a Vector |
|
static
Collection<Vector |
values()
Gets known Vector |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
POST_FILTER
public static final VectorFilterMode 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
public static final VectorFilterMode PRE_FILTER
The filter will be applied before the search query.
STRICT_POST_FILTER
public static final VectorFilterMode 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
public VectorFilterMode()
Deprecated
Creates a new instance of VectorFilterMode value.
Method Details
fromString
public static VectorFilterMode fromString(String name)
Creates or finds a VectorFilterMode from its string representation.
Parameters:
Returns:
values
public static Collection<VectorFilterMode> values()
Gets known VectorFilterMode values.
Returns: