From 7e840532c1f7211ebc631ba60d4b4e2ccc73b45b Mon Sep 17 00:00:00 2001 From: javanna Date: Tue, 6 Oct 2015 13:17:42 +0200 Subject: [PATCH] Make strategy optional in GeoShapeQueryBuilder readFrom and writeTo The field is optional everywhere else but in the serialization methods, which causes problems. Also expanded tests so that they can catch this type of problem. Closes #13963 --- .../index/query/GeoShapeQueryBuilder.java | 13 +++++++++--- .../query/GeoShapeQueryBuilderTests.java | 20 +++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java index 31bc889cb91..72c226f8b00 100644 --- a/core/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java @@ -70,7 +70,7 @@ public class GeoShapeQueryBuilder extends AbstractQueryBuilder