本文介绍了Heroku - RSolr :: Error :: Http(RSolr :: Error :: Http - 404 Not Found的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在config / sunspot.yml中

 制作:
solr:
主机名:http:/ /index.websolr.com/solr / ...
port:8983
log_level:警告
路径:/ solr / production
...

我的Heroku配置变量是

  http://index.websolr.com/solr / ... 

根据文档配置,但我不断收到日志和应用程序崩溃404消息。为了澄清,默认情况下,Sunspot与Solr捆绑在一起,但是,与您的websolr索引完全分开。 Websolr索引通过仪表板进行管理,您可以通过运行 heroku addons:打开websolr 来查看。所有的配置设置都在那里应用;您无法从命令行启动/停止/重新启动websolr。



根据 $ b

所以你应该能够简单地删除sunspot.yml文件和Sunspot将简单地使用 WEBSOLR_URL 的值。或者,您可以使用以下内容:

 制作:
solr:
主机名:index.websolr .com
port:80
log_level:警告
路径:/ solr / a1b2c3d4e5(无论您的密钥是什么)


In config/sunspot.yml

production:
  solr:
    hostname: http://index.websolr.com/solr/...
    port: 8983
    log_level: WARNING
    path: /solr/production
...

And my Heroku config variable is

http://index.websolr.com/solr/...

And everything else seems to be configured as per the docs, but I keep getting 404 messages in the log and app crashes. Has anyone come across this before and managed to fix it?

To clarify, Sunspot comes bundled with Solr by default, but that is completely separate from your websolr index. Websolr indices are managed through a dashboard that you can see by running heroku addons:open websolr. All of the configuration settings are applied there; you can't start/stop/restart websolr from the command line.

Per the documentation:

So you should be able to simply remove the sunspot.yml file and Sunspot will simply use the value of your WEBSOLR_URL. Alternatively, you could use something like this:

production:
   solr:
     hostname: index.websolr.com
     port: 80
     log_level: WARNING
     path: /solr/a1b2c3d4e5 (whatever your key is)

这篇关于Heroku - RSolr :: Error :: Http(RSolr :: Error :: Http - 404 Not Found的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-21 05:55