Sunspot Error

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

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ó:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs