Method: Chef::SolrQuery::SolrHTTPRequest.select

Defined in:
lib/chef/solr_query/solr_http_request.rb

.select(params = {}) ⇒ Object



49
50
51
52
53
54
55
# File 'lib/chef/solr_query/solr_http_request.rb', line 49

def self.select(params={})
  url = "/solr/select?#{url_join(params)}"
  Chef::Log.debug("Sending #{url} to Solr")
  request = new(:GET, url)
  json_response = request.run("Search Query to Solr '#{solr_url}#{url}'")
  Chef::JSONCompat.from_json(json_response)
end