module Solr::Support::ConnectionHelper

Public Instance Methods

connection(path, commit: false) click to toggle source
# File lib/solr/support/connection_helper.rb, line 4
def connection(path, commit: false)
  url_params = {}
  url_params[:commit] = true if commit
  url = Solr::Support::UrlHelper.solr_url(path, url_params: url_params)
  Solr::Connection.new(url)
end