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, twoPhaseIteratorprivate 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.IOExceptionpublic float score()
throws java.io.IOException
ScorerDocIdSetIterator.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 FilterScorerjava.io.IOExceptionpublic java.util.Collection<Scorer.ChildScorer> getChildren()
ScorergetChildren in class Scorerpublic Explanation explain(int doc) throws java.io.IOException
java.io.IOException