[Test] set search request size testGeohashCellFilter

The default of 10 is not good enough as previously thought.
This commit is contained in:
Boaz Leskes 2014-06-13 16:11:13 +02:00
parent 13d910f016
commit 44097b358d
1 changed files with 4 additions and 2 deletions

View File

@ -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<String> ids = new ArrayList<>();