Monday, September 5, 2011

[Rails] Re: Ruby on Rails - Setting up a Solr server with Sunspot for production

config/sunspot.yml:
production:
solr:
hostname: localhost
port: 8983
path: '/solr/'
log_level: WARNING

development:
solr:
hostname: localhost
port: 8982
log_level: INFO

test:
solr:
hostname: localhost
port: 8981
log_level: WARNING


On Sep 5, 4:37 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
wrote:
> On Mon, Sep 5, 2011 at 8:16 AM, Joe <yout...@dev-hq.co.uk> wrote:
> > It seems to be pretty poorly documented how to setup a Solr server and
> > get it working with a rails application - however I've had a go.
> > When running my rails app - I get the following error on pages with
> > the search integrated:
>
> > Connection refused - connect(2)
>
> > Which I think indicates that it can't access the server properly or
> > something.
>
> No kidding  :-)
>
> What does your config/sunspot.yml look like? Assuming solr/tomcat
> is really running and you're accessing those URLs in a browser, it
> sounds like your app is trying to connect to the wrong port.
>
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.comhttp://about.me/hassanschroeder
> twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate