Can't reindex with sunspot / solr in rails app - Error: Severe errors in solr configuration

后端 未结 7 943
我在风中等你
我在风中等你 2021-02-01 10:42

Ok, so I have a simple rails application and now i\'m trying to implement sunspot for search capabilities. However, after I\'ve generated the config file with rails g sunspot_ra

7条回答
  •  逝去的感伤
    2021-02-01 11:07

    More specifically, I found out the cause for my problem, hope this helps any souls who was wondering what happened

    First, I deleted the solr/data folder. Bad idea. And this caused the errors as described by cakism.

    Restarting, deleting solr folder, etc. won't help. Simply because there is an instance of Solr server running and it will not be stopped even with sunspot:solr:stop. You have to kill that instance by:

    rake sunspot:solr:stop # stop server
    ps -A | grep solr      # you'll see the [PID] of the solr server
    kill [PID]             # replace with the [PID] from above to completely kill the solr instance
    

    After this, you can then proceed with deleting the solr folder and starting the server again

提交回复
热议问题