From 093218e052acc84338e90e1ab77ed413843a6244 Mon Sep 17 00:00:00 2001 From: Nicholas Knize Date: Mon, 20 Nov 2017 12:09:30 -0600 Subject: [PATCH] [TEST] Fix `GeoShapeQueryTests#testPointsOnly` failure Changes unnecessary geoIntersection query to a matchAll query. closes #27454 --- .../java/org/elasticsearch/search/geo/GeoShapeQueryTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java b/core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java index ebd39530dd5..4b88a5d381c 100644 --- a/core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java +++ b/core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java @@ -437,7 +437,6 @@ public class GeoShapeQueryTests extends ESSingleNodeTestCase { 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") @@ -465,7 +464,7 @@ public class GeoShapeQueryTests extends ESSingleNodeTestCase { // 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());