Hi,
I am getting the following error 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