我得到在Heroku上應用的添加,並添加所需的太陽黑子寶石的Gemfile並且在Heroku的配置變量WEBSOLR_URL
值。配置WebSolr在Heroku
的sunspot.yml
也被添加和製作設置一些這樣的事生產:
solr:
hostname: <%=ENV["WEBSOLR_URL"]%>
port: 8983
log_level: WARNING
但還是搜索越來越在Heroku崩潰,出現此錯誤
RSolr::Error::Http (RSolr::Error::Http - 404 Not Found
2012-01-18T05:27:31+00:00 app[web.1]: Error: <html><head><title>Apache Tomcat/6.0.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /solr/KEY_m0/select</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/solr/a55_m0/select</u></p><p><b>description</b> <u>The requested resource (/solr/KEY_m0/select) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.28</
附:
我用關鍵詞取代了實際的API密鑰。
404聽起來像如果您還沒有,請在http://help.websolr.com/上報告。雖然,對於初學者,websolr運行在端口80而不是8983. – 2012-01-26 19:38:31