小编cak*_*ism的帖子

无法使用rails app中的sunspot/solr重新索引 - 错误:solr配置中出现严重错误

好的,所以我有一个简单的rails应用程序,现在我正在尝试为搜索功能实现太阳黑子.但是,在我使用rails g sunspot_rails生成配置文件之后:安装并在我启动服务器之后它已经在我的rails app-dir中生成了solr-dir并且我运行了bundle exec rake sunspot:solr:reindex I获得以下跟踪:

cakism@saraswati:~/railscode/calendar$ bundle exec rake sunspot:solr:reindex --trace
** Invoke sunspot:solr:reindex (first_time)
** Invoke sunspot:reindex (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:reindex
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
RSolr::Error::Http - 500 Internal Server Error
Error: Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, …
Run Code Online (Sandbox Code Playgroud)

solr ruby-on-rails sunspot

8
推荐指数
1
解决办法
7613
查看次数

标签 统计

ruby-on-rails ×1

solr ×1

sunspot ×1