You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -194,7 +196,8 @@ public void testHandlesMultiValuedFields() throws MapperParsingException, IOExce
194
196
195
197
// then fail appropriately
196
198
assertEquals(
197
-
"[sparse_vector] fields take hashes that map a feature to a strictly positive float, but got unexpected token " + "START_ARRAY",
199
+
"[sparse_vector] fields take hashes that map a feature to a strictly positive float, "
200
+
+ "but got unexpected token " + "START_ARRAY",
198
201
e.getCause().getMessage()
199
202
);
200
203
@@ -299,7 +302,8 @@ public void testTokensFreqRatioCorrect() {
299
302
assertThat(
300
303
eTestInteger.getMessage(),
301
304
containsString(
302
-
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: [0:0] [pruning_config] failed to parse field [tokens_freq_ratio_threshold]"
305
+
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: "
306
+
+ "[0:0] [pruning_config] failed to parse field [tokens_freq_ratio_threshold]"
303
307
)
304
308
);
305
309
@@ -315,7 +319,8 @@ public void testTokensFreqRatioCorrect() {
315
319
assertThat(
316
320
eTestRangeLower.getMessage(),
317
321
containsString(
318
-
"Failed to parse mapping: java.lang.IllegalArgumentException: [tokens_freq_ratio_threshold] must be between [1] and [100], got -2.0"
322
+
"Failed to parse mapping: java.lang.IllegalArgumentException: "
323
+
+ "[tokens_freq_ratio_threshold] must be between [1] and [100], got -2.0"
319
324
)
320
325
);
321
326
@@ -331,7 +336,8 @@ public void testTokensFreqRatioCorrect() {
331
336
assertThat(
332
337
eTestRangeHigher.getMessage(),
333
338
containsString(
334
-
"Failed to parse mapping: java.lang.IllegalArgumentException: [tokens_freq_ratio_threshold] must be between [1] and [100], got 101"
339
+
"Failed to parse mapping: java.lang.IllegalArgumentException: "
340
+
+ "[tokens_freq_ratio_threshold] must be between [1] and [100], got 101"
335
341
)
336
342
);
337
343
}
@@ -349,7 +355,8 @@ public void testTokensWeightThresholdCorrect() {
349
355
assertThat(
350
356
eTestDouble.getMessage(),
351
357
containsString(
352
-
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: [0:0] [pruning_config] failed to parse field [tokens_weight_threshold]"
358
+
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: "
359
+
+ "[0:0] [pruning_config] failed to parse field [tokens_weight_threshold]"
0 commit comments