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

后端 未结 7 949
我在风中等你
我在风中等你 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:18

    For me, there was so much dependency with turn off/restart the computer(It was not possible to restart) and does not work any thing from above(I am not trying with restart). So, my working solution was

    1. Go to app root directory.
    2. using ps aux | grep solr find solr process ID
    3. stop solr process using kill -9 4313 # for me 4313 was solr process id
    4. start solr on staging rake sunspot:solr:start RAILS_ENV=staging

    5. re-index solr using rake sunspot:solr:reindex RAILS_ENV=staging

    That's it.

    N.B: Replace environment according your need

提交回复
热议问题