It sounds like it could be a lazy-loading issue - what version of Rails are you using? Do you have TS installed as a gem or a plugin? Does it work when you create a new Image in script/console?
-- Pat On 07/12/2009, at 3:02 AM, Al-Faisal El-Dajani wrote: > Hello all, > > I just upgraded to Thinking Sphinx 1.3.8, and wanted to use delayed > deltas. I set up my define_index as per the documentation and for all > models except one it is working just fine. > > For the model that is causing trouble, Image, I have the following > define_index block: > > define_index do > indexes title > indexes caption > indexes comments.body, :as => :comment_body > indexes tags.name, :as => :tags_names > indexes user.username, :as => :username > > where 'moderated = 1' > > has :id, :as => :media_id > has user_id > has user_views.user_id, :as => :viewed_by > has created_at > > set_property :delta => :delayed > end > > This is the only model that has an association in the define_index > block, and the only model to have a where clause. > > The problem is that modifying any instance of this model does not add > a new job into the DB. What I noticed is that after any other model > adds a job to the DB this model starts adding jobs, but if this was > the first model to be modified it does not add them. > Also, the where clause is being ignored when adding new jobs to the > DB, but indexing still respects the where clause. Is this the intended > behavior? > > I've been using ThinkingSphinx(1.1.6) for a few months now, and it was > working fine. When I upgraded to use the delayed delta I started > having this problem. Any ideas? > > -- > > 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 > . > > -- 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.
