I use gem sunspot_rails https://github.com/outoftime/sunspot
I did everything according to the instructions on http://railscasts.com/episodes/278-search-with-sunspot, but get an error
Errno:: ECONNREFUSED (Connection refused - connect (2)):
app/controllers/books_controller.rb: 7: in `index '
@search = Book.search do
@books = @search.results
Have you started the Solr server?
If not than start the solr server first
And If yes than try
Hope this will help .