Module org.apache.lucene.monitor
Package org.apache.lucene.monitor
Class CollectingMatcher<T extends QueryMatch>
java.lang.Object
org.apache.lucene.monitor.CandidateMatcher<T>
org.apache.lucene.monitor.CollectingMatcher<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.lucene.monitor.CandidateMatcher
searcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TCalled when a query matches a Documentprotected voidRuns the supplied query against this CandidateMatcher's set of documents, storing any resulting match, and recording the query in the presearcher hitsMethods inherited from class org.apache.lucene.monitor.CandidateMatcher
addMatch, copyMatches, doFinish, finish, reportError, resolve
-
Field Details
-
scoreMode
-
-
Constructor Details
-
CollectingMatcher
CollectingMatcher(IndexSearcher searcher, ScoreMode scoreMode)
-
-
Method Details
-
matchQuery
protected void matchQuery(String queryId, Query matchQuery, Map<String, String> metadata) throws IOExceptionDescription copied from class:CandidateMatcherRuns the supplied query against this CandidateMatcher's set of documents, storing any resulting match, and recording the query in the presearcher hits- Specified by:
matchQueryin classCandidateMatcher<T extends QueryMatch>- Parameters:
queryId- the query idmatchQuery- the query to runmetadata- the query metadata- Throws:
IOException- on IO errors
-
doMatch
Called when a query matches a Document- Parameters:
queryId- the query IDdoc- the index of the document in the DocumentBatchscorer- the Scorer for this query- Returns:
- a match object
- Throws:
IOException- on IO error
-