Hi Will This bug has been fixed, and will be part of 1.3.9 (is in the GitHub repo now). I'll be deploying 1.3.9 sometime today, hopefully.
-- Pat On 09/12/2009, at 5:11 AM, Will Fisher wrote: > I've recently encountered a very similar problem myself while using TS > 1.3.8 and TS-delayed-delta 1.0.2. The problem appears to be with a > datetime attribute that was null, this was causing an error when > to_time (thinking_sphinx/active_record/attribute_updates.rb line 51) > was being called that was silently being swallowed. > > Will > > On Dec 7, 3:36 pm, Pat Allan <[email protected]> wrote: >> I can't reproduce this issue locally, so for the models that don't >> work, can you start commenting out fields and attributes one by one, >> see if you can determine what line is causing the problem? >> >> -- >> Pat >> >> On 07/12/2009, at 8:35 PM, tomlion wrote: >> >>> Hello Pat >>> I met the same problem. >>> I have also tried to use set_property :delta => true and the delta >>> index does not work too >>> I came into script/console and do some type like this: >> >>> Loading development environment (Rails 2.3.4) >>>>> Item.methods.collect{|name| name if name =~ /delta/}.uniq >>> => [nil, "delta_indexed_by_sphinx?", "delta_index_names"] >>>>> Item.delta_index_names >>> => ["item_delta"] >>>>> Item.methods.collect{|name| name if name =~ /delta/}.uniq >>> => [nil, "index_delta", "delta_indexed_by_sphinx?", >>> "suspended_delta", >>> "delta_object", "delta_index_names"] >> >>> is it a lazy-loading issue? >>> and how i can fix it? >> >>> On Dec 7, 9:50 am, Pat Allan <[email protected]> wrote: >>>> 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 >>>>> athttp://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 >>> athttp://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 > . > > -- 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.
