Wildcard max_expansion version check update (#1980)

Change from 2x to 1.3 for wildcard interval max_expansion version check
since #1916 was backported.

Signed-off-by: Matt Weber <matt@mattweber.org>
This commit is contained in:
Matt Weber 2022-01-26 16:43:20 -08:00 committed by GitHub
parent 7a9314a3bb
commit 0bc30b4314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -651,7 +651,7 @@ public abstract class IntervalsSourceProvider implements NamedWriteable, ToXCont
this.pattern = in.readString();
this.analyzer = in.readOptionalString();
this.useField = in.readOptionalString();
if (in.getVersion().onOrAfter(Version.V_2_0_0)) {
if (in.getVersion().onOrAfter(Version.V_1_3_0)) {
this.maxExpansions = in.readOptionalVInt();
} else {
this.maxExpansions = null;
@ -724,7 +724,7 @@ public abstract class IntervalsSourceProvider implements NamedWriteable, ToXCont
out.writeString(pattern);
out.writeOptionalString(analyzer);
out.writeOptionalString(useField);
if (out.getVersion().onOrAfter(Version.V_2_0_0)) {
if (out.getVersion().onOrAfter(Version.V_1_3_0)) {
out.writeOptionalVInt(maxExpansions);
}
}