Skip to content

Commit 01bac8d

Browse files
committed
[TEST] Fix GeoShapeQueryTests#testPointsOnly failure
Changes unnecessary geoIntersection query to a matchAll query. closes #27454
1 parent ccf7903 commit 01bac8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ public void testShapeFilterWithDefinedGeoCollection() throws Exception {
438438
assertHitCount(result, 0);
439439
}
440440

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

467466
// test that point was inserted
468467
SearchResponse response = client().prepareSearch("geo_points_only").setTypes("type1")
469-
.setQuery(geoIntersectionQuery("location", shape))
468+
.setQuery(matchAllQuery())
470469
.execute().actionGet();
471470

472471
assertEquals(1, response.getHits().getTotalHits());

0 commit comments

Comments
 (0)