如何使用 sunspot gem 在具有 Rails 应用程序的生产服务器中配置独立的 Solr?

How to configure Solr standalone in Production server with Rails application using sunspot gem?

我希望在 Rails 应用程序上使用 Ruby 在生产环境中以独立模式部署 solr-8。 运行 bundle exec rake sunspot:solr:reindex 收到此错误

RSolr::Error::Http - 500 Internal Server Error 

如有任何帮助,我们将不胜感激!

在开发中使用 gem sunspot,并且在本地机器上使用独立的 solr-8 工作正常。

Solr 运行 处于云模式。请分享用于与 solr 和 rails for index

对话的配置

设置真的很简单,但我花了很长时间才解决。 在独立模式下,与 rails 通信有点棘手 我们需要将 schema.xmlsolrconfig.xml 复制到 server/solr/your-core/conf/ 因为 Solr-8 有一些弃用警告。请仔细阅读警告。 复制文件后重新启动 solr 和 运行

rake sunspot:solr:reindex