public static class CheckHits.ExplanationAsserter extends SimpleCollector
Constructor and Description |
---|
CheckHits.ExplanationAsserter(Query q,
String defaultFieldName,
IndexSearcher s)
Constructs an instance which does shallow tests on the Explanation
|
CheckHits.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) |
getLeafCollector
public CheckHits.ExplanationAsserter(Query q, String defaultFieldName, IndexSearcher s)
public CheckHits.ExplanationAsserter(Query q, String defaultFieldName, IndexSearcher s, boolean deep)
public void setScorer(Scorer scorer) throws IOException
setScorer
in interface LeafCollector
setScorer
in class SimpleCollector
IOException
public void collect(int doc) throws IOException
collect
in interface LeafCollector
collect
in class SimpleCollector
IOException
protected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader
in class SimpleCollector
IOException
public boolean needsScores()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.