I used to have a habtm object in my index, but, after code updates we
now have it as a has_many :through.
Now I can't get the indexer to run.

Here are the objects in question

class Film < ActiveRecord::Base
  has_many :amazon_genre_films
  has_many :amazon_genres, :through => :amazon_genre_films
end

class AmazonGenreFilm < ActiveRecord::Base
  belongs_to :amazon_genre
  belongs_to :film
end

class AmazonGenre < ActiveRecord::Base
  has_many :amazon_genre_films, :dependent => :destroy
  has_many :films, :through => :amazon_genre_films
end

in the Film object I have:
define_index do
    has amazon_genres(:id), :as => :amazon_genres_id
end

When I run rake ts:rebuild it hits the film object and just sits
there...I've left it for 30 minutes and it didn't write anything.

When I used to have the habtm version it was no problem at all.

What am I doing wrong? (Probably something silly as I have a horrible
cold!)

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to