private static 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 positioned on the current document
Note that this method should not be called on Scorers passed to
LeafCollector.setScorer(Scorer),
as these may be synthetic Scorers produced by BulkScorer which will throw an Exception. |
float |
score()
Returns the score of the current document matching the query.
|
docID, freq, iterator, twoPhaseIteratorprivate 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
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()
ScorerLeafCollector.setScorer(Scorer),
as these may be synthetic Scorers produced by BulkScorer which will throw an Exception.getChildren in class Scorer