[TEST] Fix `GeoShapeQueryTests#testPointsOnly` failure
Changes unnecessary geoIntersection query to a matchAll query. closes #27454
This commit is contained in:
parent
0a8f48d592
commit
093218e052
|
@ -437,7 +437,6 @@ public class GeoShapeQueryTests extends ESSingleNodeTestCase {
|
||||||
assertHitCount(result, 0);
|
assertHitCount(result, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/27454")
|
|
||||||
public void testPointsOnly() throws Exception {
|
public void testPointsOnly() throws Exception {
|
||||||
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type1")
|
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type1")
|
||||||
.startObject("properties").startObject("location")
|
.startObject("properties").startObject("location")
|
||||||
|
@ -465,7 +464,7 @@ public class GeoShapeQueryTests extends ESSingleNodeTestCase {
|
||||||
|
|
||||||
// test that point was inserted
|
// test that point was inserted
|
||||||
SearchResponse response = client().prepareSearch("geo_points_only").setTypes("type1")
|
SearchResponse response = client().prepareSearch("geo_points_only").setTypes("type1")
|
||||||
.setQuery(geoIntersectionQuery("location", shape))
|
.setQuery(matchAllQuery())
|
||||||
.execute().actionGet();
|
.execute().actionGet();
|
||||||
|
|
||||||
assertEquals(1, response.getHits().getTotalHits());
|
assertEquals(1, response.getHits().getTotalHits());
|
||||||
|
|
Loading…
Reference in New Issue