Class SortRescorer
A Rescorer that re-sorts according to a provided Sort.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class SortRescorer : Rescorer
Constructors
SortRescorer(Sort)
Sole constructor.
Declaration
public SortRescorer(Sort sort)
Parameters
| Type | Name | Description |
|---|---|---|
| Sort | sort |
Methods
Explain(IndexSearcher, Explanation, int)
Explains how the score for the specified document was computed.
Declaration
public override Explanation Explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexSearcher | searcher | |
| Explanation | firstPassExplanation | |
| int | docID |
Returns
| Type | Description |
|---|---|
| Explanation |
Overrides
Rescore(IndexSearcher, TopDocs, int)
Rescore an initial first-pass TopDocs.
Declaration
public override TopDocs Rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
Parameters
| Type | Name | Description |
|---|---|---|
| IndexSearcher | searcher | IndexSearcher used to produce the first pass topDocs |
| TopDocs | firstPassTopDocs | Hits from the first pass search. It's very important that these hits were produced by the provided searcher; otherwise the doc IDs will not match! |
| int | topN | How many re-scored hits to return |
Returns
| Type | Description |
|---|---|
| TopDocs |