Push a new set of synonyms and erase all previous ones.
Required ACL:editSettingsThis method, like replaceAllObjects, guarantees zero downtime.All existing synonyms are deleted and replaced with the new ones, in a single, atomic operation.
SearchClient client = new SearchClient("YourApplicationID", "YourWriteAPIKey");SearchIndex index = client.InitIndex("your_index_name");List<Synonym> synonyms = /* Fetch your synonyms */index.ReplaceAllSynonyms(synonyms);// Or if you want to also replace synonyms on replicasindex.ReplaceAllSynonyms(synonyms, forwardToReplicas: true);// Asynchronousawait index.ReplaceAllSynonymsAsync(synonyms, forwardToReplicas: true);