protected class ConstantScoreQuery.ConstantScoreScorer extends FilterScorer
Scorer.ChildScorer
in
NO_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, nextDoc
all, empty, slowAdvance
public ConstantScoreQuery.ConstantScoreScorer(Scorer wrapped, float score)
public int freq() throws IOException
Scorer
freq
in class FilterScorer
IOException
public float score() throws IOException
Scorer
DocIdSetIterator.nextDoc()
or DocIdSetIterator.advance(int)
is called the first time, or when called from within
LeafCollector.collect(int)
.score
in class FilterScorer
IOException
public Collection<Scorer.ChildScorer> getChildren()
Scorer
getChildren
in class Scorer
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.