Skip to content

Commit

Permalink
[TEST] Fix GeoShapeQueryTests#testPointsOnly failure
Browse files Browse the repository at this point in the history
Changes unnecessary geoIntersection query to a matchAll query.

closes #27454
  • Loading branch information
nknize committed Nov 20, 2017
1 parent ccf7903 commit 01bac8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ public void testShapeFilterWithDefinedGeoCollection() throws Exception {
assertHitCount(result, 0);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/27454")
public void testPointsOnly() throws Exception {
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type1")
.startObject("properties").startObject("location")
Expand Down Expand Up @@ -466,7 +465,7 @@ public void testPointsOnly() throws Exception {

// test that point was inserted
SearchResponse response = client().prepareSearch("geo_points_only").setTypes("type1")
.setQuery(geoIntersectionQuery("location", shape))
.setQuery(matchAllQuery())
.execute().actionGet();

assertEquals(1, response.getHits().getTotalHits());
Expand Down

0 comments on commit 01bac8d

Please sign in to comment.