Exception: Solr::Errors::SolrUrlNotDefinedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/solr/errors/solr_url_not_defined_error.rb

Constant Summary collapse

SOLR_URL_NOT_DEFINED_MESSAGE =
'
  Solrb gem requires you to set the URL of your Solr instance
  either through SOLR_URL environmental variable or explicitly inside the configure block:

  Solr.configure do |config|
    config.url = "http://localhost:8983/solr/core"
  end

  If you are using Solr cloud you can specify the zookeeper ensemble urls inside the configure block
  and solrb will automatically get the solr urls from ZK:

  Solr.configure do |config|
    config.zookeeper_url = ["localhost:2181","localhost:2182","localhost:2183"]
  end

  For more information please check the solrb README file.

'.freeze

Instance Method Summary collapse

Constructor Details

#initializeSolrUrlNotDefinedError

Returns a new instance of SolrUrlNotDefinedError.



23
24
25
# File 'lib/solr/errors/solr_url_not_defined_error.rb', line 23

def initialize
  super(SOLR_URL_NOT_DEFINED_MESSAGE)
end