Sunspot Error

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&gt;, :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

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