[TEST] fix another rounding issue
This commit is contained in:
parent
b0a377bae8
commit
9b5497f6ca
|
@ -257,7 +257,7 @@ public class FunctionScoreTests extends ElasticsearchIntegrationTest {
|
|||
}
|
||||
|
||||
for (int i = 0; i < weights.length; i++) {
|
||||
float functionScore = weights[i] * scores[i];
|
||||
double functionScore = (double) weights[i] * scores[i];
|
||||
|
||||
if ("avg".equals(scoreMode)) {
|
||||
expectedScore += functionScore;
|
||||
|
|
Loading…
Reference in New Issue