Tuesday, September 6, 2011

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

On Sep 5, 11:45 am, Joe <yout...@dev-hq.co.uk> wrote:
> config/sunspot.yml:
> production:
>   solr:
>     hostname: localhost
>     port: 8983
>     path: '/solr/'

I think (based on some quick testing against Sunspot's default Solr
instance) that the trailing / here is blowing things up. The
underlying code takes the given path and adds things like '/select' to
it, which creates double slashes in the URL. For instance, this
request succeeds (in development mode, so port 8982):

GET http://localhost:8982/solr/select?q=*:*

but this returns a 404:

GET http://localhost:8982/solr//select?q=*:*

Not sure how this is turning into a connect failure, but it's worth
checking out...

--Matt Jones

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