Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:28:09+00:00 2026-06-15T22:28:09+00:00

I just installed the Sunspot gem: gem ‘sunspot_rails’ group :development do gem ‘sunspot_solr’ end

  • 0

I just installed the Sunspot gem:

gem 'sunspot_rails'

group :development do
  gem 'sunspot_solr'
end

group :development, :test do
  gem "sunspot_test"
end

If I don’t do sunspot:solr:start before doing rails server I get this error:

> OLR Request (1.3ms)  [ path=#<RSolr::Client:0xa9a3f6c>
> parameters={data: <?xml version="1.0"
> encoding="UTF-8"?><add><doc><field name="id">Post 36</field><field
> name="type">Post</field><field
> name="type">ActiveRecord::Base</field><field
> name="class_name">Post</field><field boost="5"
> name="title_text">sadads</field><field
> name="content_text">asdasdasdasdsadsdsd</field></doc></add>, headers:
> {"Content-Type"=>"text/xml"}, method: post, params: {:wt=>:ruby},
> query: wt=ruby, path: update, uri:
> http://localhost:8982/solr/update?wt=ruby, open_timeout: ,
> read_timeout: } ]
>      (0.4ms)  rollback transaction
>     Completed 500 Internal Server Error in 639ms
>     
>     Errno::ECONNREFUSED (Connection refused - connect(2)):
>       app/controllers/posts_controller.rb:41:in `create'

Each time I do a POST request (e.g. creating posts and votes in my app).

Is this a normal behavior of the gem? Is there of skipping or automating this step?

EDIT:

Here is the post *create action* and model, just in case:

  def create
    @post = current_user.posts.build(params[:post])
    if @post.save
      flash[:success] = "Post created!"
      redirect_to @post
    else
      render 'new'
    end
  end

class Post < ActiveRecord::Base

  searchable do
    text :title, boost: 5
    text :content
    text :replies do
      replies.map { |reply| reply.content }
    end
  end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:28:11+00:00Added an answer on June 15, 2026 at 10:28 pm

    Is this a normal behavior of the gem? Is there of skipping or automating this step?

    Yes, you need to start Solr if you want to use it, even if it’s prepackaged. To make your life easier, you can use something like Foreman.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

just installed new ubuntu vm to test around with node installed things in this
I just installed a gem but when I type gem_name --help It says: 'gem_name'
I just installed PHP on my computer (Ubuntu). If I create a test.php file
Just installed xcode 3.2.2 (on Lion) so I can test my app for the
Just installed redgate's VS integration for db development. Can't seem to navigate to procedures
Just installed the surround.vim plugin and some of the commands don't work as expected.
Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo
Just installed Python 2.7.3 on a Windows7 machine. How do I get .py files
Just installed Jenkins in Ubuntu 12.04 and I wanted to create a simple build
Just installed the SDK and ADK. while updating, it gives the following error: unexpected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.