I have a web site that accesses Solr (a Lucene based search engine
accessed via REST). I would like the configuration to be handled in
the same was as database.yml. I envision a file called solr.yml that
looks something like this in the config directory:
you could code it yourself, i think there is a railscast that shows an
easy way to do it. or you could use one of the many plugins or gems
out there. i just recently used
http://github.com/binarylogic/settingslogic/tree/master
solr_conf now holds a hash with your parameteres. You can access it
simply by doing something like:
url = solr_conf[RAILS_ENV][:url]
you could code it yourself, i think there is a railscast that shows an
easy way to do it. or you could use one of the many plugins or gems
out there. i just recently usedhttp://github.com/binarylogic/settingslogic/tree/master
I have a web site that accesses Solr (a Lucene based search engine
accessed via REST). I would like the configuration to be handled in
the same was as database.yml. I envision a file called solr.yml that
looks something like this in the config directory: