RandomVectorScorer

A RandomVectorScorer for scoring random nodes in batches against an abstract query. This class isn't thread-safe and should be used by a single thread.

Inheritors

Types

Link copied to clipboard

Creates a default scorer for random access vectors.

Functions

Link copied to clipboard
open fun getAcceptOrds(acceptDocs: Bits?): Bits?

Returns the Bits representing live documents. By default, this is an identity function.

Link copied to clipboard
abstract fun maxOrd(): Int
Link copied to clipboard
open fun ordToDoc(ord: Int): Int

Translates vector ordinal to the correct document ID. By default, this is an identity function.

Link copied to clipboard
abstract fun score(node: Int): Float

Returns the score between the query and the provided node.