   search: (callback) ->
     headers = {}
     headers["API Token"] = @api_key
-    query_string = "hashid=#{@hashid}"
+    
+    query_string = @make_querystring()
     
     # Preparing request variables
     options = 

  @api public
  ###
  add_filter: (filter_key, filter_values) ->
    @params[filter_name] = filter_values

  ###
  add_term

  @param {int} to
  @api public
  ###
  add_filter_range: (filter_key, from, to) ->
    @params.filters[filter_key] =
      from: from
      to: to

  ###
  make_querystring

  This method prepare returns a
  querystring for request

  @returns {String} querystring
  @api private
  ###
  make_querystring: () ->
    querystring = "hashid=#{@hashid}"
    querystring += "&rpp=#{@params.rpp}"
    querystring += "&page=#{@params.page}"

    console.log JSON.stringify(@params.filters)

    for key, value of @params.filters
      console.log key
      # Range filters
      if value.constructor == Object and value['from'] and value['to']
        querystring += "&filter[#{key}][gte]=#{value['from']}"
        querystring += "&filter[#{key}][lt]=#{value['to']}"
      
      # Terms filters
      if value.constructor == Array
        for elem in value
          querystring += "@filter[#{key}]=#{elem}"

    return querystring 

# Module exports
module.exports = Doofinder