Module org.elasticsearch.server
Enum Class DenseVectorFieldMapper.FilterHeuristic
java.lang.Object
java.lang.Enum<DenseVectorFieldMapper.FilterHeuristic>
org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.FilterHeuristic
- All Implemented Interfaces:
Serializable,Comparable<DenseVectorFieldMapper.FilterHeuristic>,Constable
- Enclosing class:
DenseVectorFieldMapper
public static enum DenseVectorFieldMapper.FilterHeuristic
extends Enum<DenseVectorFieldMapper.FilterHeuristic>
The heuristic to utilize when executing a filtered search against vectors indexed in an HNSW graph.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.lucene.search.knn.KnnSearchStrategyReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FANOUT
This heuristic searches the entire graph, doing vector comparisons in all immediate neighbors but only collects vectors that match the filtering criteria. -
ACORN
This heuristic will only compare vectors that match the filtering criteria.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getKnnSearchStrategy
public abstract org.apache.lucene.search.knn.KnnSearchStrategy getKnnSearchStrategy()
-