final class MaxScoreSumPropagator
extends java.lang.Object
BooleanQuery
, which
compute the score as the sum of the scores of its matching clauses.
This helps propagate information about the maximum produced scoreModifier and Type | Field and Description |
---|---|
private int |
numClauses |
private Scorer[] |
scorers |
private double[] |
sumOfOtherMaxScores |
Constructor and Description |
---|
MaxScoreSumPropagator(java.util.Collection<? extends Scorer> scorerList) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
advanceShallow(int target) |
private static double[] |
computeSumOfComplement(float[] v)
Return an array which, at index i, stores the sum of all entries of
v except the one at index i. |
(package private) float |
getMaxScore(int upTo) |
private float |
getMinCompetitiveScore(float minScoreSum,
double sumOfOtherMaxScores)
Return the minimum score that a Scorer must produce in order for a hit to
be competitive.
|
private float |
scoreSumUpperBound(double sum) |
(package private) void |
setMinCompetitiveScore(float minScore) |
private final int numClauses
private final Scorer[] scorers
private final double[] sumOfOtherMaxScores
MaxScoreSumPropagator(java.util.Collection<? extends Scorer> scorerList) throws java.io.IOException
java.io.IOException
private static double[] computeSumOfComplement(float[] v)
v
except the one at index i.void advanceShallow(int target) throws java.io.IOException
java.io.IOException
float getMaxScore(int upTo) throws java.io.IOException
java.io.IOException
void setMinCompetitiveScore(float minScore) throws java.io.IOException
java.io.IOException
private float getMinCompetitiveScore(float minScoreSum, double sumOfOtherMaxScores)
private float scoreSumUpperBound(double sum)