Solr with Rails - rake sunspot:reindex is not workingという同様の問題があります。
私はこれらをGemfileに持っています:
gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master'
gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master'
と:
bundle exec rake sunspot:solr:start
正常に動作しますが、実行すると:
bundle exec rake sunspot:solr:reindex
私は得る:
Connection refused - {:data=>
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Service</query></delete>",
:headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby},
:query=>"wt=ruby", :path=>"update", :uri=>
#<URI::HTTP:0x007fccf982f348 URL:http://localhost:8982/solr/default/update?wt=ruby>,
:open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil,
:retry_after_limit=>nil}