Never figured out why this didn't work, but I just upgraded to the
latest versions of TS gem (1.3.16) and Sphinx 0.9.9, and delayed jobs
is now firing.  Amazing.


On Jan 28, 3:01 am, rfelix <[email protected]> wrote:
> Hmm, I haven't tried from script/console... I'll give that a shot.
>
> ts-delayed-delta (1.0.2)
>
> On Jan 14, 6:41 pm, Pat Allan <[email protected]> wrote:
>
>
>
> > Just tested again locally, everything's fine for me... does this problem 
> > happen in script/console? Or just when performing changes via the browser?
>
> > Also, what version of the ts-delayed-delta gem are you using?
>
> > --
> > Pat
>
> > On 11/01/2010, at 9:24 AM,rfelixwrote:
>
> > > No, that is the entirety of both models.
>
> > > I havenottried any other sort of delta indexing.  Basically, I read
> > > through the TS docs,delayed_deltaseemed like it would best fit my
> > > needs, and so I tried to get it to work.  Should I try normal delta
> > > indexing next?  Is there some sort of logging that tells me what the
> > >delayed_deltaruby task is doing?
>
> > > On Jan 10, 8:16 pm, Pat Allan <[email protected]> wrote:
> > >> Hmm, is there any other code at all in your models? In particular, are 
> > >> there any callbacks?
>
> > >> Also, were you using the standard delta approach before this, and did it 
> > >> work fine? It's worth checking that if you'venotalready.
>
> > >> --
> > >> Pat
>
> > >> On 11/01/2010, at 12:17 PM,rfelixwrote:
>
> > >>> Sure!
>
> > >>> class Document < ActiveRecord::Base
> > >>>  belongs_to :client
> > >>>  has_attachment :storage => :s3,
> > >>>                 :max_size => 2048.kilobytes,
> > >>>                 :s3_access => :authenticated_read
>
> > >>>  define_index do
> > >>>      indexes title
> > >>>      indexes description
> > >>>      indexes filename
> > >>>      indexes client_id
> > >>>      has :client_id
> > >>>      set_property :delta => :delayed
> > >>>    end
> > >>> end
>
> > >>> class Faq < ActiveRecord::Base
> > >>>  belongs_to :client
>
> > >>>  define_index do
> > >>>      indexes title
> > >>>      indexes body
> > >>>      indexes client_id
> > >>>      has :client_id
> > >>>      set_property :delta => :delayed
> > >>>    end
> > >>> end
>
> > >>> On Jan 10, 5:18 pm, Pat Allan <[email protected]> wrote:
> > >>>> Are you able to share your model code here or in a gist?
>
> > >>>> --
> > >>>> Pat
>
> > >>>> On 10/01/2010, at 9:50 AM,rfelixwrote:
>
> > >>>>> I've had TS working for awhile with no issues.. I'm on Sphinx 0.9.8.1,
> > >>>>> delayed_job 1.8.4, and TS 1.3.14.
>
> > >>>>> I've followed the instructions 
> > >>>>> athttp://freelancing-god.github.com/ts/en/deltas.html
> > >>>>> to getdelayed_deltaworking:
> > >>>>> installed the gem/dependencies
> > >>>>> added gem to environment.rb
> > >>>>> requireddelayed_deltain my Rakefile
> > >>>>> created the delayed_jobs db table
> > >>>>> added   set_property :delta => :delayed to my models
> > >>>>> added a boolean column named "delta" to my model db tables
> > >>>>> rebuilt TS indexes: rake thinking_sphinx:rebuild
> > >>>>> started the rake task: rake ts:dd
>
> > >>>>> i see that the ruby process with the proper PID is running, but if i
> > >>>>> create a new record for the model or update an existing one, the
> > >>>>> "delta" field never changes from 1 to 0 and the index never seems to
> > >>>>> update.  If i manually run rake thinking_sphinx:rebuild, it updates
> > >>>>> the model records and the index, and my searches work as expected.
> > >>>>> What am I missing here?
>
> > >>>>> How can i debug this? How often shoulddelayed_deltabeupdatingmy
> > >>>>> index?
>
> > >>>>> Thanks.
> > >>>>> --
> > >>>>> 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 
> > > 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.

Reply via email to