Hi, Do you ran the rake task that starts sunspot?
Estracted from the sunspot install instructions... Bundle it! bundle install Generate a default configuration file: rails generate sunspot_rails:install If sunspot_solr was installed, start the packaged Solr distribution with: bundle exec *rake sunspot:solr:start # or sunspot:solr:run to start in foreground* Regards Sebastian Calvo El miércoles, 2 de septiembre de 2015, 7:37:44 (UTC-3), Ruby-Forum.com User escribió: > > Hi, > > I am geting following erro when i try to implement "Search" using > Sunspot in rails. > > > Connection refused - {:data=>"fq=type%3AList&start=0&rows=30&q=*%3A*", > :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", > :headers=>{"Content-Type"=>"application/x-www-form-urlencoded; > charset=UTF-8"}, :path=>"select", :uri=>#<URI::HTTP > http://localhost:8982/solr/development/select?wt=ruby>, > :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, > :retry_after_limit=>nil} > > Extracted source (around line #8): > 6 > 7 > 8 > 9 > 10 > 11 > > > def index > @search = List.search do > fulltext params[:search] > end > @listss = @search.results > > Rails.root: /home/ubuntu/workspace > > -- > Posted via http://www.ruby-forum.com/. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/94c484f7-1923-4e44-b970-774eba1ba5aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.