From 678e1be5cf9c94607677c91b7e4b889a1f6362a5 Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Wed, 9 Sep 2015 14:24:53 +0100 Subject: [PATCH] [TEST] fix geo query failures when no types are defined --- .../index/query/GeoDistanceRangeQueryTests.java | 13 ++++++++++++- .../index/query/GeohashCellQueryBuilderTests.java | 11 +++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/index/query/GeoDistanceRangeQueryTests.java b/core/src/test/java/org/elasticsearch/index/query/GeoDistanceRangeQueryTests.java index 4f415c64209..cba0ab7b215 100644 --- a/core/src/test/java/org/elasticsearch/index/query/GeoDistanceRangeQueryTests.java +++ b/core/src/test/java/org/elasticsearch/index/query/GeoDistanceRangeQueryTests.java @@ -114,7 +114,7 @@ public class GeoDistanceRangeQueryTests extends BaseQueryTestCase 0); + super.testToQuery(); + } + @Test public void testNullFieldName() { GeoDistanceRangeQueryBuilder builder = new GeoDistanceRangeQueryBuilder(null); diff --git a/core/src/test/java/org/elasticsearch/index/query/GeohashCellQueryBuilderTests.java b/core/src/test/java/org/elasticsearch/index/query/GeohashCellQueryBuilderTests.java index f0bc73f1b7c..5a408631cba 100644 --- a/core/src/test/java/org/elasticsearch/index/query/GeohashCellQueryBuilderTests.java +++ b/core/src/test/java/org/elasticsearch/index/query/GeohashCellQueryBuilderTests.java @@ -71,6 +71,17 @@ public class GeohashCellQueryBuilderTests extends BaseQueryTestCase 0); + super.testToQuery(); + } + @Test public void testNullField() { GeohashCellQuery.Builder builder = new Builder(null);