Class Rescorer

    • Constructor Detail

      • Rescorer

        public Rescorer()
    • Method Detail

      • rescore

        public abstract TopDocs rescore​(IndexSearcher searcher,
                                        TopDocs firstPassTopDocs,
                                        int topN)
                                 throws IOException
        Rescore an initial first-pass TopDocs.
        Parameters:
        searcher - IndexSearcher used 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
        Throws:
        IOException