Rescorer

abstract class Rescorer

Re-scores the topN results (TopDocs) from an original query. See QueryRescorer for an actual implementation. Typically, you run a low-cost first-pass query across the entire index, collecting the top few hundred hits perhaps, and then use this class to mix in a more costly second pass scoring.

See QueryRescorer.rescore for a simple static method to call to rescore using a 2nd pass Query.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun explain(searcher: IndexSearcher, firstPassExplanation: Explanation, docID: Int): Explanation

Explains how the score for the specified document was computed.

Link copied to clipboard
abstract fun rescore(searcher: IndexSearcher, firstPassTopDocs: TopDocs, topN: Int): TopDocs

Rescore an initial first-pass TopDocs.