Class VectorScoringUtils

java.lang.Object
org.elasticsearch.index.codec.vectors.VectorScoringUtils

public final class VectorScoringUtils extends Object
Utility methods for vector scoring and collection.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    scoreAndCollectAll(org.apache.lucene.search.KnnCollector knnCollector, org.apache.lucene.search.AcceptDocs acceptDocs, org.apache.lucene.util.hnsw.RandomVectorScorer scorer)
    Scores and collects all vectors using the provided scorer and collector.

    Methods inherited from class java.lang.Object

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

    • scoreAndCollectAll

      public static void scoreAndCollectAll(org.apache.lucene.search.KnnCollector knnCollector, org.apache.lucene.search.AcceptDocs acceptDocs, org.apache.lucene.util.hnsw.RandomVectorScorer scorer) throws IOException
      Scores and collects all vectors using the provided scorer and collector.
      Parameters:
      knnCollector - the collector to collect scored vectors
      acceptDocs - the accept docs to filter vectors
      scorer - the vector scorer
      Throws:
      IOException - if an I/O error occurs