Skip to content

Instantly share code, notes, and snippets.

@gingray
Forked from rodrigomaia/error.solr-404.sh
Created February 12, 2016 11:15
Show Gist options
  • Save gingray/166a068892e3531339f0 to your computer and use it in GitHub Desktop.
Save gingray/166a068892e3531339f0 to your computer and use it in GitHub Desktop.
Rails 4: RSolr::Error::Http (RSolr::Error::Http - 404 Not Found
1) stopping all running solr processes
2) removing the solr folder BUT keep a copy of it accessible in case you need some of the old config, synonyms and such.
3) gem uninstall all related gems
> for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
4) bundle install
5) rails generate sunspot_rails:install
fontes:
http://stackoverflow.com/questions/20304160/rails-4-rsolrerrorhttp-rsolrerrorhttp-404-not-found
http://stackoverflow.com/questions/8095209/uninstall-all-installed-gems-in-osx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment