diff --git a/server/src/internalClusterTest/java/org/opensearch/search/aggregations/bucket/FilterRewriteIT.java b/server/src/internalClusterTest/java/org/opensearch/search/aggregations/bucket/FilterRewriteIT.java index e7fba4b9f1322..207804c19b6e3 100644 --- a/server/src/internalClusterTest/java/org/opensearch/search/aggregations/bucket/FilterRewriteIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/search/aggregations/bucket/FilterRewriteIT.java @@ -109,7 +109,6 @@ public void testMinDocCountOnDateHistogram() throws Exception { public void testDisableOptimizationGivesSameResults() throws Exception { SearchResponse response = client().prepareSearch("idx") .setSize(0) - .setQuery(QUERY) .addAggregation(dateHistogram("histo").field("date").calendarInterval(DateHistogramInterval.DAY).minDocCount(0)) .get(); @@ -125,7 +124,6 @@ public void testDisableOptimizationGivesSameResults() throws Exception { response = client().prepareSearch("idx") .setSize(0) - .setQuery(QUERY) .addAggregation(dateHistogram("histo").field("date").calendarInterval(DateHistogramInterval.DAY).minDocCount(0)) .get();