getRandomVectorScorer

open override fun getRandomVectorScorer(similarityFunction: VectorSimilarityFunction, vectorValues: KnnVectorValues, target: FloatArray): RandomVectorScorer
open override fun getRandomVectorScorer(similarityFunction: VectorSimilarityFunction, vectorValues: KnnVectorValues, target: ByteArray): RandomVectorScorer

Returns a RandomVectorScorer for the given set of vectors and target vector.

Return

a RandomVectorScorer for the given field and target vector.

Parameters

similarityFunction

the similarity function to use

vectorValues

the vector values to score

target

the target vector

Throws

IOException

if an I/O error occurs when reading from the index.