getRandomVectorScorer

open override fun getRandomVectorScorer(field: String, target: FloatArray): RandomVectorScorer
open override fun getRandomVectorScorer(field: String, target: ByteArray): RandomVectorScorer

Returns a RandomVectorScorer for the given field and target vector.

Return

a RandomVectorScorer for the given field and target vector.

Parameters

field

the field to search

target

the target vector

Throws

IOException

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