Class QueryRescorer

    • Field Detail

      • INSTANCE

        public static final Rescorer INSTANCE
    • Constructor Detail

      • QueryRescorer

        public QueryRescorer()
    • Method Detail

      • explain

        public Explanation explain​(int topLevelDocId,
                                   IndexSearcher searcher,
                                   RescoreContext rescoreContext,
                                   Explanation sourceExplanation)
                            throws IOException
        Description copied from interface: Rescorer
        Executes an Explanation phase on the rescorer.
        Specified by:
        explain in interface Rescorer
        Parameters:
        topLevelDocId - the global / top-level document ID to explain
        searcher - the searcher used for this search. This will never be null.
        rescoreContext - context for this rescorer
        sourceExplanation - explanation of the source of the documents being fed into this rescore
        Returns:
        the explain for the given top level document ID.
        Throws:
        IOException - if an IOException occurs