File tree 2 files changed +10
-10
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test/search.highlight
server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 41
41
" Unified highlighter on a field WITHOUT OFFSETS exceeding index.highlight.max_analyzed_offset with max_analyzed_offset=20 should SUCCEED " :
42
42
43
43
- skip :
44
- version : " - 7.99 .99"
45
- reason : max_analyzed_offset query param added in 8 .0
44
+ version : " - 7.11 .99"
45
+ reason : max_analyzed_offset query param added in 7.12 .0
46
46
47
47
- do :
48
48
search :
67
67
" Plain highlighter on a field WITHOUT OFFSETS exceeding index.highlight.max_analyzed_offset with max_analyzed_offset=20 should SUCCEED " :
68
68
69
69
- skip :
70
- version : " - 7.99 .99"
71
- reason : max_analyzed_offset query param added in 8 .0
70
+ version : " - 7.11 .99"
71
+ reason : max_analyzed_offset query param added in 7.12 .0
72
72
73
73
- do :
74
74
search :
@@ -104,8 +104,8 @@ setup:
104
104
" Plain highlighter on a field WITH OFFSETS exceeding index.highlight.max_analyzed_offset with max_analyzed_offset=20 should SUCCEED " :
105
105
106
106
- skip :
107
- version : " - 7.99 .99"
108
- reason : max_analyzed_offset query param added in 8 .0
107
+ version : " - 7.11 .99"
108
+ reason : max_analyzed_offset query param added in 7.12 .0
109
109
110
110
- do :
111
111
search :
@@ -118,8 +118,8 @@ setup:
118
118
" Plain highlighter with max_analyzed_offset < 0 should FAIL " :
119
119
120
120
- skip :
121
- version : " - 7.99 .99"
122
- reason : max_analyzed_offset query param added in 8 .0
121
+ version : " - 7.11 .99"
122
+ reason : max_analyzed_offset query param added in 7.12 .0
123
123
124
124
- do :
125
125
catch : bad_request
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ protected AbstractHighlighterBuilder(StreamInput in) throws IOException {
159
159
options (in .readMap ());
160
160
}
161
161
requireFieldMatch (in .readOptionalBoolean ());
162
- if (in .getVersion ().onOrAfter (Version .V_8_0_0 )) {
162
+ if (in .getVersion ().onOrAfter (Version .V_7_12_0 )) {
163
163
maxAnalyzedOffset (in .readOptionalInt ());
164
164
}
165
165
}
@@ -203,7 +203,7 @@ public final void writeTo(StreamOutput out) throws IOException {
203
203
out .writeMap (options );
204
204
}
205
205
out .writeOptionalBoolean (requireFieldMatch );
206
- if (out .getVersion ().onOrAfter (Version .V_8_0_0 )) {
206
+ if (out .getVersion ().onOrAfter (Version .V_7_12_0 )) {
207
207
out .writeOptionalInt (maxAnalyzedOffset );
208
208
}
209
209
doWriteTo (out );
You can’t perform that action at this time.
0 commit comments