def search_synonyms(query, params = {}, request_options = {})
      type = params[:type] || params['type']
      type = type.join(',') if type.is_a?(Array)
      page = params[:page] || params['page'] || 0
      hits_per_page = params[:hitsPerPage] || params['hitsPerPage'] || 20
      params = {
        :query => query,
        :type => type.to_s,
        :page => page,
        :hitsPerPage => hits_per_page
      }
      client.post(Protocol.search_synonyms_uri(name), params.to_json, :read, request_options)
    end
def search_synonyms(query, params = {}, request_options = {})
      type = params[:type] || params['type']
      type = type.join(',') if type.is_a?(Array)
      page = params[:page] || params['page'] || 0
      hits_per_page = params[:hitsPerPage] || params['hitsPerPage'] || 20
      params = {
        :query => query,
        :type => type.to_s,
        :page => page,
        :hitsPerPage => hits_per_page
      }
      client.post(Protocol.search_synonyms_uri(name), params.to_json, :read, request_options)
    end
Search synonyms

 @param query the query
 @param params an optional hash of :type, :page, :hitsPerPage
 @param request_options contains extra parameters to send with your query