From 01bac8dfb373e4d61778f1d69226d3f58df23866 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 98041f9e9f9eb..96a179225a4f2 100644 --- a/core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java +++ b/core/src/test/java/org/elasticsearch/search/geo/GeoShapeQueryTests.java @@ -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") @@ -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());