Hi Josh Probably best to just call the standard index_delta method, which will figure out the underlying stuff:
B.index_delta Cheers -- Pat On 14/03/2010, at 2:09 PM, Josh wrote: > I have a situation where model A has many B's. > > Part of B's index is: > > indexes A(:name), :as => :a_name > > I want to set up a callback in A such that when I save it, it will > trigger an update for model B > > I do not want to loop over them all and set delta true and save, as > there are potentially many instances of B. > > I am currently skipping instantiation, validation, callbacks etc for > performance by setting the delta column via update_all. this > unfortunately won't enqueue a delta indexing job. How should I do > that? > > I would like to do something like this: > ThinkingSphinx::Deltas::DelayedDelta.index(B) however index is an > instance method. Where can I find that instance? What is it attached > to? > > Thanks, > -=Josh > > -- > 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.
