Throwing missing field error that isn't in the TS index

The relevant bits of my model

class Lesson < ActiveRecord::Base
  has_many :listings
  has_many :courses, :through => :listings

  has_many :taggings
  has_many :tags, :through => :taggings

  if respond_to? :define_index
    define_index do
      indexes :name
      indexes description
      indexes tags(:name), :as => :tag_names
      indexes courses.name, :as => :course_name

      has taggings.tag_id, :as => :tag_ids
    end
  end
end

I've run a rebuild and restarted my server, but it keeps throwing this error

ThinkingSphinx::SphinxError: index lesson_core: query error: no field 'created_at' found in schema
  1. any idea on how to solve this?

  2. Hi Patrick

    What version of Thinking Sphinx are you using, and if this error is happening when you're searching, what's the search query?

    Pat

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions