def batch_synonyms!(synonyms, forward_to_replicas = false, replace_existing_synonyms = false, request_options = {})
      res = batch_synonyms(synonyms, forward_to_replicas, replace_existing_synonyms, request_options)
      wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      res
    end
def batch_synonyms!(synonyms, forward_to_replicas = false, replace_existing_synonyms = false, request_options = {})
      res = batch_synonyms(synonyms, forward_to_replicas, replace_existing_synonyms, request_options)
      wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      res
    end
Add/Update an array of synonyms and wait the end of indexing

 @param synonyms the array of synonyms to add/update
 @param forward_to_replicas should we forward the delete to replica indices
 @param replace_existing_synonyms should we replace the existing synonyms before adding the new ones
 @param request_options contains extra parameters to send with your query