protected class ConstantScoreQuery.ConstantScoreScorer extends FilterScorer
Scorer.ChildScorerinNO_MORE_DOCS| Constructor and Description |
|---|
ConstantScoreQuery.ConstantScoreScorer(Scorer wrapped,
float score) |
| Modifier and Type | Method and Description |
|---|---|
int |
freq()
Returns the freq of this Scorer on the current document
|
Collection<Scorer.ChildScorer> |
getChildren()
Returns child sub-scorers
|
float |
score()
Returns the score of the current document matching the query.
|
advance, asTwoPhaseIterator, cost, docID, nextDocall, empty, slowAdvancepublic ConstantScoreQuery.ConstantScoreScorer(Scorer wrapped, float score)
public int freq()
throws IOException
Scorerfreq in class FilterScorerIOExceptionpublic float score()
throws IOException
ScorerDocIdSetIterator.nextDoc() or DocIdSetIterator.advance(int)
is called the first time, or when called from within
LeafCollector.collect(int).score in class FilterScorerIOExceptionpublic Collection<Scorer.ChildScorer> getChildren()
ScorergetChildren in class ScorerCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.