public class LTRInterleavingRescorer extends LTRRescorer
LTRScoringQuery that will assign a
new score to each document. The top documents will be resorted based on the
new score.| Constructor and Description |
|---|
LTRInterleavingRescorer(Interleaving interleavingAlgorithm,
LTRInterleavingScoringQuery[] rerankingQueries) |
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(IndexSearcher searcher,
Explanation firstPassExplanation,
int docID) |
TopDocs |
rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN)
rescores the documents:
|
void |
scoreFeatures(IndexSearcher indexSearcher,
int topN,
LTRScoringQuery.ModelWeight[] modelWeights,
ScoreDoc[] hits,
List<LeafReaderContext> leaves,
ScoreDoc[][] rerankedPerModel) |
extractFeaturesInfo, getExplanation, getFirstPassDocsRanked, heapAdjust, heapify, scoreFeatures, scoreSingleHit, sortByScorepublic LTRInterleavingRescorer(Interleaving interleavingAlgorithm, LTRInterleavingScoringQuery[] rerankingQueries)
public TopDocs rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) throws IOException
rescore in class LTRRescorersearcher - current IndexSearcherfirstPassTopDocs - documents to rerank;topN - documents to return;IOExceptionpublic void scoreFeatures(IndexSearcher indexSearcher, int topN, LTRScoringQuery.ModelWeight[] modelWeights, ScoreDoc[] hits, List<LeafReaderContext> leaves, ScoreDoc[][] rerankedPerModel) throws IOException
IOExceptionpublic Explanation explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID) throws IOException
explain in class LTRRescorerIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.