Class IVFKnnSearchStrategy

java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
org.elasticsearch.search.vectors.IVFKnnSearchStrategy

public class IVFKnnSearchStrategy extends org.apache.lucene.search.knn.KnnSearchStrategy
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.knn.KnnSearchStrategy

    org.apache.lucene.search.knn.KnnSearchStrategy.Hnsw, org.apache.lucene.search.knn.KnnSearchStrategy.Patience, org.apache.lucene.search.knn.KnnSearchStrategy.Seeded
  • Field Summary

    Fields inherited from class org.apache.lucene.search.knn.KnnSearchStrategy

    DEFAULT_FILTERED_SEARCH_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    float
     
    int
     
    void
    This method is called when the next block of vectors is processed.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getVisitRatio

      public float getVisitRatio()
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class org.apache.lucene.search.knn.KnnSearchStrategy
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.knn.KnnSearchStrategy
    • nextVectorsBlock

      public void nextVectorsBlock()
      This method is called when the next block of vectors is processed. It accumulates the minimum competitive document score from the collector and updates the accumulator with the most competitive score. If the current score in the accumulator is greater than the minimum competitive document score in the collector, it updates the collector's minimum competitive document score.
      Specified by:
      nextVectorsBlock in class org.apache.lucene.search.knn.KnnSearchStrategy