public static class CheckHits.ExplanationAsserter extends SimpleCollector
| 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) |
ScoreMode |
scoreMode() |
void |
setScorer(Scorable scorer) |
getLeafCollectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompetitiveIteratorpublic ExplanationAsserter(Query q, String defaultFieldName, IndexSearcher s)
public ExplanationAsserter(Query q, String defaultFieldName, IndexSearcher s, boolean deep)
public void setScorer(Scorable 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 ScoreMode scoreMode()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.