Use #ensureSearchable() in GeoHashGridTests
This commit is contained in:
parent
25f0bba30c
commit
f9d1552282
|
@ -101,6 +101,7 @@ public class GeoHashGridTests extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
indexRandom(true, cities);
|
indexRandom(true, cities);
|
||||||
|
ensureSearchable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -166,9 +167,6 @@ public class GeoHashGridTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void unmapped() throws Exception {
|
public void unmapped() throws Exception {
|
||||||
client().admin().cluster().prepareHealth("idx_unmapped").setWaitForYellowStatus().execute().actionGet();
|
|
||||||
|
|
||||||
|
|
||||||
for (int precision = 1; precision <= highestPrecisionGeohash; precision++) {
|
for (int precision = 1; precision <= highestPrecisionGeohash; precision++) {
|
||||||
SearchResponse response = client().prepareSearch("idx_unmapped")
|
SearchResponse response = client().prepareSearch("idx_unmapped")
|
||||||
.addAggregation(geohashGrid("geohashgrid")
|
.addAggregation(geohashGrid("geohashgrid")
|
||||||
|
|
Loading…
Reference in New Issue