Skip to content

Commit 699153e

Browse files
committed
Fix GeoShapeQueryBuilder serialization after backport
Aligns the routing value serialization version after backport of #30760
1 parent 94ba78e commit 699153e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/query/GeoShapeQueryBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public GeoShapeQueryBuilder(StreamInput in) throws IOException {
170170
indexedShapeType = in.readOptionalString();
171171
indexedShapeIndex = in.readOptionalString();
172172
indexedShapePath = in.readOptionalString();
173-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
173+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
174174
indexedShapeRouting = in.readOptionalString();
175175
} else {
176176
indexedShapeRouting = null;
@@ -197,7 +197,7 @@ protected void doWriteTo(StreamOutput out) throws IOException {
197197
out.writeOptionalString(indexedShapeType);
198198
out.writeOptionalString(indexedShapeIndex);
199199
out.writeOptionalString(indexedShapePath);
200-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
200+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
201201
out.writeOptionalString(indexedShapeRouting);
202202
} else if (indexedShapeRouting != null) {
203203
throw new IllegalStateException("indexed shape routing cannot be serialized to older nodes");

0 commit comments

Comments
 (0)