Rails rsolr 1.0.12 Errno :: ECONNREFUSED折旧,但为什么不在生产中工作?

时间:2015-03-09 23:45:59

标签: ruby-on-rails sunspot sunspot-rails rsolr

我正在使用Rails 4.0.4和Sunspot作为搜索引擎。在生产中工作得很好。使用rsolr 1.0.12

[DEPRECATION] `RSolr.escape` is deprecated (and incorrect).  Use `Rsolr.solr_escape` instead.
Errno::ECONNREFUSED (Connection refused - {:data=>"fq=type%3ACompany&q=design&fl=*+score&qf=name_text&defType=edismax&start=0&rows=30", :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :headers=>{"Content-Type"=>"application/x-www-form-urlencoded; charset=UTF-8"}, :path=>"select", :uri=>#<URI::HTTP:0x007ff3594ca8e8 URL:http://localhost:8983/solr/production/select?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}):

这是因为网址:http://localhost:8983等等?以及如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

据我所知Errno::ECONNREFUSED错误来自你没有启动你的solr。开始使用:

bundle exec rake sunspot:solr:start

我也在搜索弃用警告,我发现了LINK