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

  • Home
  • SEARCH
  • 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 8751341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:01:37+00:00 2026-06-13T13:01:37+00:00

I am writing a rails applications that utilize solr for full text search In

  • 0

I am writing a rails applications that utilize solr for full text search

In development mode, I used the sunpost solr gem which is really handy. I used the sqlite3 database in development and everything went smooth.

Now is the time to move to production server and I installed the solr-tomcat package and moved to my production database which is Mysql. I moved the conf files of solr from my application folder to /usr/share/solr/conf

Suddenly, I cannot reindex, and solr returned this

rake RAILS_ENV=production sunspot:solr:reindex
[#                                 ] [  50/7312] [  0.68%] [00:00] [00:41] [ 175.82/s]rake aborted!
Mysql::Error: Unknown column 'barangs.' in 'where clause': SELECT  `barangs`.* FROM `barangs`  WHERE (`barangs`.`` >= 0) ORDER BY `barangs`.`` ASC LIMIT 50

Intrigued, I tried to reindex with the development database, all is well and can be reindexed. This behavior left me baffled

Any help will be appreciated

  • 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-13T13:01:37+00:00Added an answer on June 13, 2026 at 1:01 pm

    I got the problem. It was due to me dropping and restoring tables recklessly and it loses some relationships definitions.

    Hence the “missing” column on table ‘barangs’.’MISSING‘ solr can’t find the specified column.

    For others who are facing the problem, I recommend inspecting the relationship between models first

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

Sidebar

Related Questions

I am currently writing a search method for my rails applications, and at the
We are writing a Rails application that is using CouchDB as its data store.
I'm writing a rails app that has a model called 'User' and a model
I'm writing a Rails app which has the following jasmine spec: describe buttons, ->
I'm writing a Rails app that needs to store shape data representing the floor
I'm writing my first Rails app and I'm confused by a method call that
G'day guys, currently have almost finished writing a rails application that allows a CSV
I am writing a Ruby on Rails(3) application that relies on an xml feed
All. A Rails n00b here... I'm writing an application that reports the status of
I am about to begin writing a Rails application that will allow clients to

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.