Class Rescorer

    • Constructor Detail

      • Rescorer

        public Rescorer()
    • Method Detail

      • rescore

        public abstract TopDocs rescore​(IndexSearcher searcher,
                                        TopDocs firstPassTopDocs,
                                        int topN)
                                 throws java.io.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:
        java.io.IOException
      • explain

        public abstract Explanation explain​(IndexSearcher searcher,
                                            Explanation firstPassExplanation,
                                            int docID)
                                     throws java.io.IOException
        Explains how the score for the specified document was computed.
        Throws:
        java.io.IOException