// ~ 45 meters min shape radius to match
// center between positions index #5 and #6
ShapeBuilder shape = buildSquareShape(48.675689, 2.38259, 45);
SearchResponse searchResponse = client().prepareSearch(INDEX_NAME).setTypes(ESEntityType.WAY.getIndiceName())
.setQuery(QueryBuilders.matchAllQuery())
.setPostFilter(new GeoShapeFilterBuilder("shape", shape))
.execute().actionGet();
// Assert
Assert.assertEquals(1, searchResponse.getHits().hits().length);
}