{"id":3109,"date":"2014-03-16T20:28:35","date_gmt":"2014-03-16T20:28:35","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/sunspot_rails-gem-errno-econnrefused-connection-refused-connect-2-collection-of-common-programming-errors-2\/"},"modified":"2014-03-16T20:28:35","modified_gmt":"2014-03-16T20:28:35","slug":"sunspot_rails-gem-errno-econnrefused-connection-refused-connect-2-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/sunspot_rails-gem-errno-econnrefused-connection-refused-connect-2-collection-of-common-programming-errors-2\/","title":{"rendered":"sunspot_rails gem &#8211; &ldquo; Errno:: ECONNREFUSED (Connection refused &#8211; connect (2)) &rdquo;-Collection of common programming errors"},"content":{"rendered":"<p>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<\/p>\n<blockquote>\n<p>Errno:: ECONNREFUSED (Connection refused &#8211; connect (2)): app\/controllers\/books_controller.rb: 7: in `index &#8216;<\/p>\n<\/blockquote>\n<p>code from <strong>books_controller.rb<\/strong><\/p>\n<pre><code>  def index\n    @search = Book.search do\n      fulltext params[:search]\n    end\n    @books = @search.results\n  end\n<\/code><\/pre>\n<p>what it can be? Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211; connect (2)): app\/controllers\/books_controller.rb: 7: in `index &#8216; code from books_controller.rb def index @search = Book.search do fulltext params[:search] end @books = @search.results end what it can be? Thanks.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3109","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3109"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3109\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}