Class CollectingMatcher<T extends QueryMatch>

    • Field Detail

      • scoreMode

        private final ScoreMode scoreMode
    • Method Detail

      • matchQuery

        protected void matchQuery​(java.lang.String queryId,
                                  Query matchQuery,
                                  java.util.Map<java.lang.String,​java.lang.String> metadata)
                           throws java.io.IOException
        Description copied from class: CandidateMatcher
        Runs the supplied query against this CandidateMatcher's set of documents, storing any resulting match, and recording the query in the presearcher hits
        Specified by:
        matchQuery in class CandidateMatcher<T extends QueryMatch>
        Parameters:
        queryId - the query id
        matchQuery - the query to run
        metadata - the query metadata
        Throws:
        java.io.IOException - on IO errors
      • doMatch

        protected abstract T doMatch​(java.lang.String queryId,
                                     int doc,
                                     Scorable scorer)
                              throws java.io.IOException
        Called when a query matches a Document
        Parameters:
        queryId - the query ID
        doc - the index of the document in the DocumentBatch
        scorer - the Scorer for this query
        Returns:
        a match object
        Throws:
        java.io.IOException - on IO error