private class CustomScoreQuery.CustomScorer extends FilterScorer
Scorer.ChildScorer
Modifier and Type | Field and Description |
---|---|
private CustomScoreProvider |
provider |
private float |
qWeight |
private Scorer |
subQueryScorer |
private int |
valSrcDocID |
private Scorer[] |
valSrcScorers |
private float[] |
vScores |
in
Modifier | Constructor and Description |
---|---|
private |
CustomScorer(CustomScoreProvider provider,
CustomScoreQuery.CustomWeight w,
float qWeight,
Scorer subQueryScorer,
Scorer[] valSrcScorers) |
Modifier and Type | Method and Description |
---|---|
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 float qWeight
private final Scorer subQueryScorer
private final Scorer[] valSrcScorers
private final CustomScoreProvider provider
private final float[] vScores
private int valSrcDocID
private CustomScorer(CustomScoreProvider provider, CustomScoreQuery.CustomWeight w, float qWeight, Scorer subQueryScorer, Scorer[] valSrcScorers)
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