Public class QueryRescorer

Namespace
Rowles.LeanCorpus.Search.Scoring
Assembly
Rowles.LeanCorpus.dll

Reranks a first-pass result set with scores from a second query.

public class QueryRescorer
Inheritance
QueryRescorer

Public constructor QueryRescorer(Query, float)

Initialises a query rescorer.

Public constructor QueryRescorer(Query, float, float)

Initialises a query rescorer with separate first-pass and second-pass weights.

Public property FirstPassWeight

The weight applied to the first-pass score.

Public property Query

The second-pass query used by this rescorer.

Public property SecondPassWeight

The weight applied to the second-pass score.

Public method Combine(float, bool, float)

Combines the first-pass and optional second-pass scores.

Public method Rescore(IndexSearcher, TopDocs, int)

Rescores and returns up to topN first-pass documents.