From 44097b358def60c1a06632bf43e6419d00e6b6d4 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Fri, 13 Jun 2014 16:11:13 +0200 Subject: [PATCH] [Test] set search request size testGeohashCellFilter The default of 10 is not good enough as previously thought. --- .../java/org/elasticsearch/search/geo/GeoFilterTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/geo/GeoFilterTests.java b/src/test/java/org/elasticsearch/search/geo/GeoFilterTests.java index 335ce733491..5b2ad26cf37 100644 --- a/src/test/java/org/elasticsearch/search/geo/GeoFilterTests.java +++ b/src/test/java/org/elasticsearch/search/geo/GeoFilterTests.java @@ -533,8 +533,10 @@ public class GeoFilterTests extends ElasticsearchIntegrationTest { builder.cacheKey(null); } try { - SearchResponse response = client().prepareSearch("locations").setQuery(QueryBuilders.matchAllQuery()).setPostFilter(builder).get(); - assertHitCount(response, expectedCounts.get(builder)); + long expectedCount = expectedCounts.get(builder); + SearchResponse response = client().prepareSearch("locations").setQuery(QueryBuilders.matchAllQuery()) + .setPostFilter(builder).setSize((int) expectedCount).get(); + assertHitCount(response, expectedCount); String[] expectedIds = expectedResults.get(builder); if (expectedIds == null) { ArrayList ids = new ArrayList<>();