Class CollectingMatcher<T extends QueryMatch>

java.lang.Object
org.apache.lucene.monitor.CandidateMatcher<T>
org.apache.lucene.monitor.CollectingMatcher<T>

abstract class CollectingMatcher<T extends QueryMatch> extends CandidateMatcher<T>
  • Field Details

    • scoreMode

      private final ScoreMode scoreMode
  • Constructor Details

  • Method Details

    • matchQuery

      public void matchQuery(String queryId, Query matchQuery, Map<String,String> metadata) throws 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:
      IOException - on IO errors
    • doMatch

      protected abstract T doMatch(String queryId, int doc, Scorable scorer) throws 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:
      IOException - on IO error