Class QueryRescorer
A Rescorer that uses a provided Query to assign
scores to the first-pass hits.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
QueryRescorer
Assembly: Lucene.Net.dll
Syntax
public abstract class QueryRescorer : Rescorer
Constructors
|
Improve this Doc
View Source
QueryRescorer(Query)
Sole constructor, passing the 2nd pass query to
assign scores to the 1st pass hits.
Declaration
public QueryRescorer(Query query)
Parameters
Type |
Name |
Description |
Query |
query |
|
Methods
|
Improve this Doc
View Source
Combine(Single, Boolean, Single)
Implement this in a subclass to combine the first pass and
second pass scores. If secondPassMatches
is false
then
the second pass query failed to match a hit from the
first pass query, and you should ignore the
secondPassScore
.
Declaration
protected abstract float Combine(float firstPassScore, bool secondPassMatches, float secondPassScore)
Parameters
Type |
Name |
Description |
System.Single |
firstPassScore |
|
System.Boolean |
secondPassMatches |
|
System.Single |
secondPassScore |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Explain(IndexSearcher, Explanation, Int32)
Declaration
public override Explanation Explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Rescore(IndexSearcher, TopDocs, Query, Double, Int32)
Declaration
public static TopDocs Rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)
Parameters
Returns
|
Improve this Doc
View Source
Rescore(IndexSearcher, TopDocs, Int32)
Declaration
public override TopDocs Rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
Parameters
Returns
Overrides