Skip to content

Instantly share code, notes, and snippets.

@rossta
Created June 6, 2014 14:57
Show Gist options
  • Save rossta/76a118ec3995d598691d to your computer and use it in GitHub Desktop.
Save rossta/76a118ec3995d598691d to your computer and use it in GitHub Desktop.
Updated sunspot yml
test:
solr:
hostname: localhost
port: 9008
log_level: WARNING
solr_home: solr
development:
solr:
hostname: localhost
port: 9007
log_level: WARNING
solr_home: solr
@midu
Copy link

midu commented Jun 6, 2014

So, to get it working, I had to do this:

cd /web/platform
rm -rf solr # kill all the existing config
pidof -k solr # kill running solrs
rake sunspot:solr:start # recreates the solr

And I also had to update my sunspot.yml like so:

# rails g sunspot_solr:install 
development:
  solr:
    hostname: localhost
    port: 8982
    log_level: INFO
    path: /solr/development

test:
  solr:
    hostname: localhost
    port: 8981
    log_level: WARNING
    path: /solr/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment