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.
  • Enum Constant Details

    • FANOUT

      public static final DenseVectorFieldMapper.FilterHeuristic FANOUT
      This heuristic searches the entire graph, doing vector comparisons in all immediate neighbors but only collects vectors that match the filtering criteria.
    • ACORN

      public static final DenseVectorFieldMapper.FilterHeuristic ACORN
      This heuristic will only compare vectors that match the filtering criteria.
  • Method Details

    • values

      public static DenseVectorFieldMapper.FilterHeuristic[] 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

      public static DenseVectorFieldMapper.FilterHeuristic valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getKnnSearchStrategy

      public abstract org.apache.lucene.search.knn.KnnSearchStrategy getKnnSearchStrategy()