`

sunspot-rails无法启动,后台访问404错误

阅读更多
问题是这样的:
bundle exec rake sunspot:solr:start RAILS_ENV=production


执行之后日志显示是成功的,但是去做index索引的时候,返回的是错误下面这个错误
引用
Rails app: Solr throwing RSolr::Error::Http - 404 Not Found when executing search


很显然是没有启动成功,上面那个success只是一个假象而已。

解决方案,在config/sunspot.yml中的配置中添加一项:

solr_home: solr


注意千万别手欠写成xml

参考地址
http://stackoverflow.com/questions/19759906/rails-app-solr-throwing-rsolrerrorhttp-404-not-found-when-executing-searc
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics