|Constructor and Description|
|Modifier and Type||Method and Description|
Explains how the score for the specified document was computed.
Rescore an initial first-pass
public SortRescorer(Sort sort)
public TopDocs rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) throws IOException
IndexSearcherused to produce the first pass 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!
topN- How many re-scored hits to return
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.