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
task.skipTest("cluster.info/30_info_thread_pool/Cluster HTTP Info", "The search_throttled thread pool has been removed")
91
+
task.skipTest("synonyms/80_synonyms_from_index/Fail loading synonyms from index if synonyms_set doesn't exist", "Synonyms do no longer fail if the synonyms_set doesn't exist")
# Create synonyms set and check synonyms are applied
368
+
- do:
369
+
synonyms.put_synonym:
370
+
id: set1
371
+
body:
372
+
synonyms_set:
373
+
synonyms: "foo => bar, baz"
374
+
375
+
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
376
+
- do:
377
+
cluster.health:
378
+
index: .synonyms
379
+
wait_for_status: green
380
+
381
+
382
+
- do:
383
+
indices.stats: { index: test_index }
384
+
385
+
- match: { indices.test_index.health: "green" }
386
+
387
+
# Synonyms are applied
388
+
- do:
389
+
indices.analyze:
390
+
index: test_index
391
+
body:
392
+
analyzer: my_analyzer
393
+
text: foo
394
+
395
+
- length: { tokens: 2 }
396
+
397
+
---
398
+
"Load index with non existent synonyms set and lenient set to false":
399
+
- requires:
400
+
test_runner_features: [ allowed_warnings ]
401
+
402
+
- do:
403
+
indices.create:
404
+
index: test_index
405
+
body:
406
+
settings:
407
+
index:
408
+
number_of_shards: 1
409
+
number_of_replicas: 0
410
+
analysis:
411
+
filter:
412
+
my_synonym_filter:
413
+
type: synonym
414
+
synonyms_set: set1
415
+
updateable: true
416
+
lenient: false
417
+
analyzer:
418
+
my_analyzer:
419
+
type: custom
420
+
tokenizer: whitespace
421
+
filter: [ lowercase, my_synonym_filter ]
422
+
mappings:
423
+
properties:
424
+
my_field:
425
+
type: text
426
+
search_analyzer: my_analyzer
427
+
428
+
- match: { acknowledged: true }
429
+
- match: { shards_acknowledged: false }
430
+
431
+
- do:
432
+
indices.stats: { index: test_index }
433
+
434
+
- length: { indices: 0 }
435
+
436
+
# Create synonyms set and check synonyms are applied
437
+
- do:
438
+
synonyms.put_synonym:
439
+
id: set1
440
+
body:
441
+
synonyms_set:
442
+
synonyms: "foo => bar, baz"
443
+
444
+
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
445
+
- do:
446
+
cluster.health:
447
+
index: .synonyms
448
+
wait_for_status: green
449
+
450
+
- do:
451
+
# Warning issued in previous versions
452
+
allowed_warnings:
453
+
- "The [state] field in the response to the reroute API is deprecated and will be removed in a future version. Specify ?metric=none to adopt the future behaviour."
0 commit comments