Method Rescore
Rescore(IndexSearcher, TopDocs, Int32)
Declaration
public override TopDocs Rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)
Parameters
Type | Name | Description |
---|---|---|
IndexSearcher | searcher | |
TopDocs | firstPassTopDocs | |
System.Int32 | topN |
Returns
Type | Description |
---|---|
TopDocs |
Overrides
Rescore(IndexSearcher, TopDocs, Query, Double, Int32)
Sugar API, calling Rescore(IndexSearcher, TopDocs, Int32) using a simple linear
combination of firstPassScore + weight
* secondPassScore
Declaration
public static TopDocs Rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)
Parameters
Type | Name | Description |
---|---|---|
IndexSearcher | searcher | |
TopDocs | topDocs | |
Query | query | |
System.Double | weight | |
System.Int32 | topN |
Returns
Type | Description |
---|---|
TopDocs |