Skip to content

Commit fcf5f5a

Browse files
committed
reload_analyzers is not available on serverless
1 parent 8c0dca5 commit fcf5f5a

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/90_synonyms_reloading_for_synset.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,20 @@ setup:
183183
query: salute
184184
- match: { hits.total.value: 0 }
185185

186-
187-
# This is to ensure that all index shards (write and read) are available. As we won't be using synonyms API to refresh
188-
# analyzers, this can be needed in serverless.
189-
- do:
190-
cluster.health:
191-
index: .synonyms
192-
wait_for_status: green
193-
194186
# Reloading analyzers makes synonyms refresh
195187
- do:
196-
indices.reload_search_analyzers:
197-
index: my_index1
198-
- length: { reload_details: 1 }
188+
synonyms.put_synonym:
189+
id: synonyms_set1
190+
refresh: true
191+
body:
192+
synonyms_set:
193+
- synonyms: "hello, salute"
194+
- synonyms: "ciao => goodbye"
195+
196+
- match: { result: "updated" }
197+
- gt: { reload_analyzers_details._shards.total: 0 }
198+
- gt: { reload_analyzers_details._shards.successful: 0 }
199+
- length: { reload_analyzers_details.reload_details: 1 }
199200

200201
- do:
201202
search:
@@ -205,5 +206,6 @@ setup:
205206
match:
206207
my_field:
207208
query: salute
209+
208210
- match: { hits.total.value: 1 }
209211

0 commit comments

Comments
 (0)