public static class CheckHits.ExplanationAsserter extends SimpleCollector
NOTE: this HitCollector should only be used with the Query and Searcher specified at when it is constructed.
| Constructor and Description |
|---|
ExplanationAsserter(Query q,
String defaultFieldName,
IndexSearcher s)
Constructs an instance which does shallow tests on the Explanation
|
ExplanationAsserter(Query q,
String defaultFieldName,
IndexSearcher s,
boolean deep) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(LeafReaderContext context) |
boolean |
needsScores() |
void |
setScorer(Scorer scorer) |
getLeafCollectorpublic ExplanationAsserter(Query q, String defaultFieldName, IndexSearcher s)
public ExplanationAsserter(Query q, String defaultFieldName, IndexSearcher s, boolean deep)
public void setScorer(Scorer scorer) throws IOException
setScorer in interface LeafCollectorsetScorer in class SimpleCollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionprotected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader in class SimpleCollectorIOExceptionpublic boolean needsScores()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.