def search_books(query, params = {})
      params[:q] = query.to_s.strip
      data = request("/search/index", params)
      Hashie::Mash.new(data["search"])
    end
def search_books(query, params = {})
      params[:q] = query.to_s.strip
      data = request("/search/index", params)
      Hashie::Mash.new(data["search"])
    end
Search for books

 query   - Text to match against book title, author, and ISBN fields.
 options - Optional search parameters

 options[:page] - Which page to returns (default: 1)
 options[:field] - Search field. One of: title, author, or genre (default is all)