Skip to content

Commit

Permalink
Update versions after backport of max_analyzed_offset (#69029)
Browse files Browse the repository at this point in the history
Since #69016 is merged versions for serialisation/deserialisation
and YAML tests are updated.

Follows: #67325
  • Loading branch information
matriv authored Feb 16, 2021
1 parent f8c9554 commit 3ba6e4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ setup:
"Unified highlighter on a field WITHOUT OFFSETS exceeding index.highlight.max_analyzed_offset with max_analyzed_offset=20 should SUCCEED":

- skip:
version: " - 7.99.99"
reason: max_analyzed_offset query param added in 8.0
version: " - 7.11.99"
reason: max_analyzed_offset query param added in 7.12.0

- do:
search:
Expand All @@ -67,8 +67,8 @@ setup:
"Plain highlighter on a field WITHOUT OFFSETS exceeding index.highlight.max_analyzed_offset with max_analyzed_offset=20 should SUCCEED":

- skip:
version: " - 7.99.99"
reason: max_analyzed_offset query param added in 8.0
version: " - 7.11.99"
reason: max_analyzed_offset query param added in 7.12.0

- do:
search:
Expand Down Expand Up @@ -104,8 +104,8 @@ setup:
"Plain highlighter on a field WITH OFFSETS exceeding index.highlight.max_analyzed_offset with max_analyzed_offset=20 should SUCCEED":

- skip:
version: " - 7.99.99"
reason: max_analyzed_offset query param added in 8.0
version: " - 7.11.99"
reason: max_analyzed_offset query param added in 7.12.0

- do:
search:
Expand All @@ -118,8 +118,8 @@ setup:
"Plain highlighter with max_analyzed_offset < 0 should FAIL":

- skip:
version: " - 7.99.99"
reason: max_analyzed_offset query param added in 8.0
version: " - 7.11.99"
reason: max_analyzed_offset query param added in 7.12.0

- do:
catch: bad_request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected AbstractHighlighterBuilder(StreamInput in) throws IOException {
options(in.readMap());
}
requireFieldMatch(in.readOptionalBoolean());
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_12_0)) {
maxAnalyzedOffset(in.readOptionalInt());
}
}
Expand Down Expand Up @@ -203,7 +203,7 @@ public final void writeTo(StreamOutput out) throws IOException {
out.writeMap(options);
}
out.writeOptionalBoolean(requireFieldMatch);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_12_0)) {
out.writeOptionalInt(maxAnalyzedOffset);
}
doWriteTo(out);
Expand Down

0 comments on commit 3ba6e4f

Please sign in to comment.