Skip to content

Commit

Permalink
Fix number of shards for serverless in synonyms test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Nov 4, 2024
1 parent 6cf4536 commit 9891704
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
settings:
index:
number_of_shards: 1
number_of_replicas: 0
analysis:
filter:
my_synonym_filter:
Expand Down Expand Up @@ -72,7 +71,6 @@
settings:
index:
number_of_shards: 1
number_of_replicas: 0
analysis:
filter:
my_synonym_filter:
Expand All @@ -99,7 +97,6 @@
- '{"index": {"_index": "my_index2", "_id": "2"}}'
- '{"my_field": "goodbye"}'


# An update of synonyms_set1 must trigger auto-reloading of analyzers only for synonyms_set1
- do:
synonyms.put_synonym:
Expand All @@ -109,8 +106,8 @@
- synonyms: "hello, salute"
- synonyms: "ciao => goodbye"
- match: { result: "updated" }
- match: { reload_analyzers_details._shards.total: 2 } # shard requests are still sent to 2 indices
- match: { reload_analyzers_details._shards.successful: 2 }
- gte: { reload_analyzers_details._shards.total: 2 } # shard requests are still sent to 2 indices
- gte: { reload_analyzers_details._shards.successful: 2 }
- length: { reload_analyzers_details.reload_details: 1 } # reload details contain only a single index
- match: { reload_analyzers_details.reload_details.0.index: "my_index1" }
- match: { reload_analyzers_details.reload_details.0.reloaded_analyzers.0: "my_analyzer1" }
Expand Down

0 comments on commit 9891704

Please sign in to comment.