【问题标题】:Rails rsolr 1.0.12 Errno::ECONNREFUSED depreciated, but why not working in production?Rails rsolr 1.0.12 Errno::ECONNREFUSED 已贬值,但为什么不在生产环境中工作?
【发布时间】:2015-03-09 23:45:59
【问题描述】:

我正在使用 Rails 4.0.4 en 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}):

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

【问题讨论】:

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


    【解决方案1】:

    据我所知Errno::ECONNREFUSED 错误是在您没有启动 solr 时出现的。开始使用:

    bundle exec rake sunspot:solr:start
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-08
      • 1970-01-01
      • 2017-04-14
      • 2017-09-11
      • 2023-03-18
      • 1970-01-01
      • 2015-05-15
      相关资源
      最近更新 更多