Module org.elasticsearch.server
Class VectorScoringUtils
java.lang.Object
org.elasticsearch.index.codec.vectors.VectorScoringUtils
Utility methods for vector scoring and collection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidscoreAndCollectAll(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.
-
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 vectorsacceptDocs- the accept docs to filter vectorsscorer- the vector scorer- Throws:
IOException- if an I/O error occurs
-