mirror of https://github.com/apache/lucene.git
LUCENE-3478: committed wrong patch: need to abs for relative delta as TestComplexExplanations creates negative scores
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1178417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d3b2ff9af2
commit
e0b0721fbc
|
@ -306,7 +306,7 @@ public class CheckHits {
|
|||
}
|
||||
|
||||
private static float explainToleranceDelta(float f1, float f2) {
|
||||
return Math.max(f1, f2) * EXPLAIN_SCORE_TOLERANCE_DELTA;
|
||||
return Math.max(Math.abs(f1), Math.abs(f2)) * EXPLAIN_SCORE_TOLERANCE_DELTA;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue