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