File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments