[Test] set search request size testGeohashCellFilter
The default of 10 is not good enough as previously thought.
This commit is contained in:
parent
13d910f016
commit
44097b358d
|
@ -533,8 +533,10 @@ public class GeoFilterTests extends ElasticsearchIntegrationTest {
|
||||||
builder.cacheKey(null);
|
builder.cacheKey(null);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
SearchResponse response = client().prepareSearch("locations").setQuery(QueryBuilders.matchAllQuery()).setPostFilter(builder).get();
|
long expectedCount = expectedCounts.get(builder);
|
||||||
assertHitCount(response, 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);
|
String[] expectedIds = expectedResults.get(builder);
|
||||||
if (expectedIds == null) {
|
if (expectedIds == null) {
|
||||||
ArrayList<String> ids = new ArrayList<>();
|
ArrayList<String> ids = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue