assert that doc was actually found
This commit is contained in:
parent
318dfba464
commit
d021b1bfeb
|
@ -225,7 +225,8 @@ public class FiltersFunctionScoreQuery extends Query {
|
||||||
}
|
}
|
||||||
|
|
||||||
FiltersFunctionFactorScorer scorer = (FiltersFunctionFactorScorer)scorer(context);
|
FiltersFunctionFactorScorer scorer = (FiltersFunctionFactorScorer)scorer(context);
|
||||||
scorer.advance(doc);
|
int actualDoc = scorer.advance(doc);
|
||||||
|
assert (actualDoc == doc);
|
||||||
double score = scorer.computeScore(doc, subQueryExpl.getValue());
|
double score = scorer.computeScore(doc, subQueryExpl.getValue());
|
||||||
Explanation factorExplanation = Explanation.match(
|
Explanation factorExplanation = Explanation.match(
|
||||||
CombineFunction.toFloat(score),
|
CombineFunction.toFloat(score),
|
||||||
|
|
Loading…
Reference in New Issue