Sunspot Error

10 views
Skip to first unread message

Gulab Sherieff

unread,
Sep 2, 2015, 6:37:44 AM9/2/15
to rubyonra...@googlegroups.com
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/.

Sebastian Calvo

unread,
Sep 2, 2015, 8:26:34 AM9/2/15
to Ruby on Rails: Talk
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
Reply all
Reply to author
Forward
0 new messages