def replace_all_rules(rules, request_options = {})
      forward_to_replicas = request_options[:forwardToReplicas] || request_options['forwardToReplicas'] || false
      batch_rules(rules, forward_to_replicas, true, request_options)
    end
def replace_all_rules(rules, request_options = {})
      forward_to_replicas = request_options[:forwardToReplicas] || request_options['forwardToReplicas'] || false
      batch_rules(rules, forward_to_replicas, true, request_options)
    end
Replace rules in the index by the given array of rules

 @param rules the array of rules to add
 @param request_options contains extra parameters to send with your query