diff --git a/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/tmp/ElasticsearchMetricAggregationsIT.java b/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/tmp/ElasticsearchMetricAggregationsIT.java index ee2b6f74a92..096de3e2b4b 100644 --- a/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/tmp/ElasticsearchMetricAggregationsIT.java +++ b/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/tmp/ElasticsearchMetricAggregationsIT.java @@ -38,7 +38,7 @@ public class ElasticsearchMetricAggregationsIT { private final AggregationKey countConverted = AggregationKey.of( "countConverted" ); private final AggregationKey countDistinctIntegers = AggregationKey.of( "countDistinctIntegers" ); private final AggregationKey countDistinctConverted = AggregationKey.of( "countDistinctConverted" ); - private final AggregationKey avgIntegers = AggregationKey.of( "avgIntegers" ); + private final AggregationKey avgIntegers = AggregationKey.of( "avgIntegers" ); private final AggregationKey avgConverted = AggregationKey.of( "avgConverted" ); @BeforeEach @@ -62,7 +62,7 @@ public void test_filteringResults() { .aggregation( countConverted, f -> f.count().field( "converted" ) ) .aggregation( countDistinctIntegers, f -> f.countDistinct().field( "integer" ) ) .aggregation( countDistinctConverted, f -> f.countDistinct().field( "converted" ) ) - .aggregation( avgIntegers, f -> f.avg().field( "integer", Integer.class ) ) + .aggregation( avgIntegers, f -> f.avg().field( "integer", Double.class ) ) .aggregation( avgConverted, f -> f.avg().field( "converted", String.class ) ) .toQuery(); @@ -96,7 +96,7 @@ public void test_allResults() { .aggregation( countConverted, f -> f.count().field( "converted" ) ) .aggregation( countDistinctIntegers, f -> f.countDistinct().field( "integer" ) ) .aggregation( countDistinctConverted, f -> f.countDistinct().field( "converted" ) ) - .aggregation( avgIntegers, f -> f.avg().field( "integer", Integer.class ) ) + .aggregation( avgIntegers, f -> f.avg().field( "integer", Double.class ) ) .aggregation( avgConverted, f -> f.avg().field( "converted", String.class ) ) .toQuery();