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:
parent
7a9314a3bb
commit
0bc30b4314
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue