protected class FunctionQuery.AllScorer extends Scorer
Scorable.ChildScorable| Constructor and Description |
|---|
AllScorer(LeafReaderContext context,
FunctionQuery.FunctionWeight w,
float boost) |
| Modifier and Type | Method and Description |
|---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
Explanation |
explain(int doc) |
float |
getMaxScore(int upTo)
Return the maximum score that documents between the last
target
that this iterator was shallow-advanced to
included and upTo included. |
DocIdSetIterator |
iterator()
Return a
DocIdSetIterator over matching documents. |
float |
score()
Returns the score of the current document matching the query.
|
advanceShallow, getWeight, twoPhaseIteratorgetChildren, setMinCompetitiveScorepublic AllScorer(LeafReaderContext context, FunctionQuery.FunctionWeight w, float boost) throws IOException
IOExceptionpublic DocIdSetIterator iterator()
ScorerDocIdSetIterator over matching documents.
The returned iterator will either be positioned on -1 if no
documents have been scored yet, DocIdSetIterator.NO_MORE_DOCS
if all documents have been scored already, or the last document id that
has been scored otherwise.
The returned iterator is a view: calling this method several times will
return iterators that have the same state.public int docID()
Scorablepublic float score()
throws IOException
Scorablescore in class ScorableIOExceptionpublic float getMaxScore(int upTo)
throws IOException
Scorertarget
that this iterator was shallow-advanced to
included and upTo included.getMaxScore in class ScorerIOExceptionpublic Explanation explain(int doc) throws IOException
IOExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.