def browse(page_or_query_parameters = nil, hits_per_page = nil, request_options = {}, &block)
      params = {}
      if page_or_query_parameters.is_a?(Hash)
        params.merge!(page_or_query_parameters)
      else
        params[:page] = page_or_query_parameters unless page_or_query_parameters.nil?
      end
      if hits_per_page.is_a?(Hash)
        params.merge!(hits_per_page)
      else
        params[:hitsPerPage] = hits_per_page unless hits_per_page.nil?
      end

      if block_given?
        IndexBrowser.new(client, name, params).browse(request_options, &block)
      else
        params[:page] ||= 0
        params[:hitsPerPage] ||= 1000
        client.get(Protocol.browse_uri(name, params), :read, request_options)
      end
    end
def browse(page_or_query_parameters = nil, hits_per_page = nil, request_options = {}, &block)
      params = {}
      if page_or_query_parameters.is_a?(Hash)
        params.merge!(page_or_query_parameters)
      else
        params[:page] = page_or_query_parameters unless page_or_query_parameters.nil?
      end
      if hits_per_page.is_a?(Hash)
        params.merge!(hits_per_page)
      else
        params[:hitsPerPage] = hits_per_page unless hits_per_page.nil?
      end

      if block_given?
        IndexBrowser.new(client, name, params).browse(request_options, &block)
      else
        params[:page] ||= 0
        params[:hitsPerPage] ||= 1000
        client.get(Protocol.browse_uri(name, params), :read, request_options)
      end
    end
Browse all index content

 @param queryParameters The hash of query parameters to use to browse
                        To browse from a specific cursor, just add a ":cursor" parameters
 @param queryParameters An optional second parameters hash here for backward-compatibility (which will be merged with the first)
 @param request_options contains extra parameters to send with your query

 @DEPRECATED:
 @param page Pagination parameter used to select the page to retrieve.
 @param hits_per_page Pagination parameter used to select the number of hits per page. Defaults to 1000.