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>
-
abstract class CollectingMatcher<T extends QueryMatch> extends CandidateMatcher<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classCollectingMatcher.MatchCollector
-
Field Summary
Fields Modifier and Type Field Description private ScoreModescoreMode-
Fields inherited from class org.apache.lucene.monitor.CandidateMatcher
searcher
-
-
Constructor Summary
Constructors Constructor Description CollectingMatcher(IndexSearcher searcher, ScoreMode scoreMode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TdoMatch(java.lang.String queryId, int doc, Scorable scorer)Called when a query matches a Documentprotected voidmatchQuery(java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)Runs the supplied query against this CandidateMatcher's set of documents, storing any resulting match, and recording the query in the presearcher hits-
Methods inherited from class org.apache.lucene.monitor.CandidateMatcher
addMatch, copyMatches, doFinish, finish, reportError, resolve
-
-
-
-
Field Detail
-
scoreMode
private final ScoreMode scoreMode
-
-
Constructor Detail
-
CollectingMatcher
CollectingMatcher(IndexSearcher searcher, 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.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:
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 IDdoc- the index of the document in the DocumentBatchscorer- the Scorer for this query- Returns:
- a match object
- Throws:
java.io.IOException- on IO error
-
-