Pat will be able to give a longer answer, but in the meantime.. Jason wrote: > 1. Why do I need a delta column if I'm using delayed_jobs? I tried > to get rid of it, but TS complained loudly.
Even with delayed_job, the indexer needs to know which records belong in the delta index. Since the indexer talks directly yo your DB, this needs to be in the DB somewhere. > 2. Why does delta sometimes end up false? Nothing in my code > explicitly touches it. Adding or removing an object to a has_and_belongs_to_many (or has_many :through) doesn't toggle the delta attribute on your indexed model. You'll need to do this manually. The new :touch option for associations that is in edge ActiveRecord should help with this. > 3. What's the best way to fix this? After you do: obj.tags << some_tag call: obj.save! -- James Healy <jimmy-at-deefa-dot-com> Thu, 14 May 2009 23:55:11 +1000 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
