Rails app: Solr throwing RSolr::Error::Http - 404 Not Found when executing search

后端 未结 7 607
甜味超标
甜味超标 2020-12-13 14:15

Very lost as I haven\'t made any changes to my search which has always been working but somehow I\'ve got a break. Being relatively new to Rails, the error output isn\'t giv

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 14:46

    I came across the same issue when upgrading to sunspot 2.1.0 from 2.0.0.

    I resolved this by adding following line to sunspot.yml (under config in my rails app) on the development: block (maybe one is needed for test and production )

        solr_home: solr
    

    So my SOLR installation is under rails-app-dir/solr and the configuration there under conf.

提交回复
热议问题