private class BoostedQuery.CustomScorer extends FilterScorer
Scorer.ChildScorer
Modifier and Type | Field and Description |
---|---|
private LeafReaderContext |
readerContext |
private FunctionValues |
vals |
private BoostedQuery.BoostedWeight |
weight |
in
Modifier | Constructor and Description |
---|---|
private |
CustomScorer(LeafReaderContext readerContext,
BoostedQuery.BoostedWeight w,
Scorer scorer,
ValueSource vs) |
Modifier and Type | Method and Description |
---|---|
Explanation |
explain(int doc) |
java.util.Collection<Scorer.ChildScorer> |
getChildren()
Returns child sub-scorers
|
float |
score()
Returns the score of the current document matching the query.
|
docID, freq, iterator, twoPhaseIterator
private final BoostedQuery.BoostedWeight weight
private final FunctionValues vals
private final LeafReaderContext readerContext
private CustomScorer(LeafReaderContext readerContext, BoostedQuery.BoostedWeight w, Scorer scorer, ValueSource vs) throws java.io.IOException
java.io.IOException
public float score() throws java.io.IOException
Scorer
DocIdSetIterator.nextDoc()
or
DocIdSetIterator.advance(int)
is called on the Scorer.iterator()
the first time, or when called from within LeafCollector.collect(int)
.score
in class FilterScorer
java.io.IOException
public java.util.Collection<Scorer.ChildScorer> getChildren()
Scorer
getChildren
in class Scorer
public Explanation explain(int doc) throws java.io.IOException
java.io.IOException