Update ignore_unmapped serialization after backport
Update the serialization version of ignore_unmapped flag after backport to 6.4 Relates #31153
This commit is contained in:
parent
d49c85d2e8
commit
972dcbc0ad
|
@ -175,8 +175,7 @@ public class GeoDistanceSortBuilder extends SortBuilder<GeoDistanceSortBuilder>
|
|||
nestedSort = in.readOptionalWriteable(NestedSortBuilder::new);
|
||||
}
|
||||
validation = GeoValidationMethod.readFromStream(in);
|
||||
// TODO: Change to 6_4_0 after backport
|
||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
|
||||
ignoreUnmapped = in.readBoolean();
|
||||
}
|
||||
}
|
||||
|
@ -195,8 +194,7 @@ public class GeoDistanceSortBuilder extends SortBuilder<GeoDistanceSortBuilder>
|
|||
out.writeOptionalWriteable(nestedSort);
|
||||
}
|
||||
validation.writeTo(out);
|
||||
// TODO: Change to 6_4_0 after backport
|
||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
|
||||
out.writeBoolean(ignoreUnmapped);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue