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:
Robert Muir 2011-10-03 14:34:50 +00:00
parent d3b2ff9af2
commit e0b0721fbc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**