def replace_all_synonyms!(synonyms, request_options = {})
      res = replace_all_synonyms(synonyms, request_options)
      wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      res
    end
def replace_all_synonyms!(synonyms, request_options = {})
      res = replace_all_synonyms(synonyms, request_options)
      wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
      res
    end
Replace synonyms in the index by the given array of synonyms and wait the end of indexing

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