UpdateableRandomVectorScorer

Just like a RandomVectorScorer but allows the scoring ordinal to be changed. Useful during indexing operations

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.

Link copied to clipboard
abstract fun setScoringOrdinal(node: Int)

Changes the scoring ordinal to the given node. If the same scorer object is being used continually, this can be used to avoid creating a new scorer for each node.