From 1138a6ae60578925d3bc0c2ae5cab33b606ddf70 Mon Sep 17 00:00:00 2001 From: Britta Weber Date: Tue, 9 Sep 2014 15:33:09 +0200 Subject: [PATCH] [TEST] fix rounding issue --- .../search/functionscore/FunctionScoreTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java index f6e84746fa2..a0f37761e18 100644 --- a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java +++ b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java @@ -244,13 +244,13 @@ public class FunctionScoreTests extends ElasticsearchIntegrationTest { } - protected float computeExpectedScore(float[] weights, float[] scores, String scoreMode) { - float expectedScore = 0.0f; + protected double computeExpectedScore(float[] weights, float[] scores, String scoreMode) { + double expectedScore = 0.0; if ("multiply".equals(scoreMode)) { - expectedScore = 1.0f; + expectedScore = 1.0; } if ("max".equals(scoreMode)) { - expectedScore = Float.MAX_VALUE * -1.0f; + expectedScore = Float.MAX_VALUE * -1.0; } if ("min".equals(scoreMode)) { expectedScore = Float.MAX_VALUE;