Hi Mark Not-quite-consistent patching/testing on my part - I was able to reproduce this. 1.3.13 has a fix.
Thanks for the pointer on the deprecated code, too. -- Pat On 14/12/2009, at 8:18 PM, Mark Kocera wrote: > Hi Pat, > > No problem. Thanks for your quick response! > > Everything works correctly now when adding a new object. And as long > as objects are still in the delta index, jobs are added when the > object is changed. > > But for objects already in the core index, of after a full index, > delta jobs are'nt added when an object is changed (they should, > right?). This could have something to do with my code, I'm still > investigating. > > Is anybody else seeing this? > > BTW, ThinkingSphinx::Deltas::FlagAsDeletedJob#perform is calling > deprecated method ThinkingSphinx::Search.search_for_id > > -- > Cheer, Mark. > > > On Dec 14, 6:33 am, Pat Allan <[email protected]> wrote: >> Hi Mark >> >> Sorry about the continuing bugs, I managed to find the source of your >> problem (at least, I'm pretty sure it's the cause), and it's now fixed in >> 1.3.12, which I've just pushed to GitHub and Gemcutter. >> >> -- >> Pat >> >> On 14/12/2009, at 4:14 AM, Mark Kocera wrote: >> >> >> >>> Hi, >> >>> Unfortunately it seems 1.3.11 does not yet solve my delta problems. >>> These are the relevant parts of the problematic model: >> >>> class Event < ActiveRecord::Base >> >>> has_and_belongs_to_many :targets, :order => "name ASC" >> >>> has_one :image, :as => :attachable, :class_name => >>> 'Asset', :dependent => :destroy >>> accepts_nested_attributes_for :image >> >>> define_index do >>> indexes title >> >>> ... >> >>> has targets(:id), :as => :target_ids, :facet => true >>> has image(:id), :as => :image_id >> >>> set_property :delta => :delayed >>> end >> >>> Jobs are added when these fields have values, but when they're empty, >>> the jobs do not get added. (As expected, when I uncomment these lines >>> jobs are added.) >> >>> I think this should have been fixed in the 1.3.10 release? I'm not >>> sure how to debug this. >> >>> -- >>> Mark >> > > -- > > 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.
