In config/sunspot.yml
production:
solr:
hostname: http://index.websolr.com/solr/...
port: 8983
log_level: WARNING
path: /solr/production
...
And my Heroku config variable is
http://index.websolr.com/solr/...
And everything else seems to be configured as per the docs, but I keep getting 404 messages in the log and app crashes. Has anyone come across this before and managed to fix it?
To clarify, Sunspot comes bundled with Solr by default, but that is completely separate from your websolr index. Websolr indices are managed through a dashboard that you can see by running
heroku addons:open websolr. All of the configuration settings are applied there; you can't start/stop/restart websolr from the command line.Per the documentation:
So you should be able to simply remove the sunspot.yml file and Sunspot will simply use the value of your
WEBSOLR_URL. Alternatively, you could use something like this: