Two things to note: * I don't think update_attribute invokes callbacks - ie: before_save, after_save, etc. So that won't invoke delta updates either. * If you're updating a boolean, timestamp or integer value that is tied to an attribute, then Thinking Sphinx will update this in Sphinx without needing to add the record to the delta index. This does not apply in Rails before 2.2 or if fields, complex attributes, or columns not related to the index are changed.
So, what happens if you do the following: horse.update_attributes(:public => true) And what does your define_index block look like? -- Pat On 01/02/2010, at 8:13 PM, necker wrote: > at the end i made a mistake when writing it should be horse.delta = > true. like this. > > now i have > horse.update_attribute(:public, true) > horse.delta = true > horse.save --> works --> delta also set to true (?!) > > -- > 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.
