From 0bc30b431487efb8e5d6f370adaf8ac7f73d6e04 Mon Sep 17 00:00:00 2001 From: Matt Weber Date: Wed, 26 Jan 2022 16:43:20 -0800 Subject: [PATCH] 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 --- .../org/opensearch/index/query/IntervalsSourceProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java b/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java index 1bc9b42d277..44a14f3b3de 100644 --- a/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java +++ b/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java @@ -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); } }