Hi Pat,

Yes, my records are updated and I records are created in the
delayed_job table.

Now I followed these instructions:
http://amitsolanki.com/2010/04/running-delayed-delta-daemon-in-background-for-thinking-sphinx/#comment-5802
My record doesn't disappear from the index anymore. The index is just
not updated.

It seems the problem is that my delayed job doesn't start (?) /
persist in production. When I run script/delayed_delta status
RAILS_ENV=production, I get: "job_runner: no instances running."

Not sure where to go next...



On Apr 11, 2:33 am, Pat Allan <[email protected]> wrote:
> Hi Alex
>
> How are you updating the record? Are you actually seeing an SQL statement for 
> the update?
>
> It's just that in Rails, using in place modifiers (ie: gsub!) doesn't flag 
> the instance's dirty flags, and so Rails doesn't think anything's actually 
> changed. Not sure if that's also the case with +=.
>
> --
> Pat
>
> On 11/04/2011, at 6:38 PM, alex wrote:
>
>
>
>
>
>
>
> > Hi Pat,
>
> > Thank you for you reply. I now switched to delayed_job, but am running
> > into a problem in production only:
>
> > - I search for a keyword
> > - I pick on of the records appearing in the search results
> > - I partially update this record (I add a word in the description) and
> > save it
> > - When I search for my original keyword, the record I updated is not
> > in the results anymore (I can see the Delta Indexing works is applied
> > to the record)...
> > - If I rebuild the index, the record appears again in my search
> > results
>
> > (I had the exact same problem when I was using Workling / Starling,
> > which is what pushed me to upgrade)
>
> > Any clue what I should look at?
>
> > On Apr 10, 7:21 pm, Pat Allan <[email protected]> wrote:
> >> It looks like that blog post was written back when the ts-delayed-delta 
> >> code hadn't been extracted from thinking-sphinx into its own gem. Try it 
> >> all with ts-delayed-delta added to your Gemfile/environment.rb (and don't 
> >> forget the corresponding :require/:lib option of 
> >> 'thinking_sphinx/deltas/delayed_delta').
>
> >> --
> >> Pat
>
> >> On 11/04/2011, at 4:56 AM, alex wrote:
>
> >>> Thanks Pat,
>
> >>> Now, I'm trying to perform a Delta Job in my Workling Delta Worker
> >>> with the following call:
>
> >>> ThinkingSphinx::Deltas::DeltaJob.new(options[:delta_index_name]).perform
>
> >>> And I got the following error message:
>
> >>>    WORKLING ERROR: runner could not invoke WorklingDeltaWorker:index
> >>> with
> >>> {:document_id=>32, :delta_index_name=>["course_delta"], 
> >>> :uid=>"workling_delta_workers:index:
> >>> 41b4ca49da96ea83343ae70f74a6262f", :core_index_name=>["course_core"]}.
> >>> error was: #<NameError: uninitialized constant
> >>> ThinkingSphinx::Deltas::DeltaJob>
>
> >>> What I am missing?
>
> >>> Thanks!
> >>> Alex
>
> >>> On Apr 8, 9:12 pm, Pat Allan <[email protected]> wrote:
> >>>> Hi Alex
>
> >>>> Thinking Sphinx now supports multiple indices per model, so the method 
> >>>> names are pluralised - core_index_names and delta_index_names, which 
> >>>> return arrays of strings.
>
> >>>> Cheers
>
> >>>> --
> >>>> Pat
>
> >>>> On 09/04/2011, at 9:46 AM, alex wrote:
>
> >>>>> Hi,
>
> >>>>> I am trying to use Workling with Thinking-sphinx. I followed a post
> >>>>> from Dave Dupre (http://davedupre.com/2009/09/27/using-thinking-
> >>>>> sphinx/) where he uses the "delta_index_name" and "core_index_name"
> >>>>> method. It seems these methods are no longer available. What can I use
> >>>>> instead to get my delayed delta indexing work?
>
> >>>>> Thanks,
> >>>>> Alex
>
> >>>>> --
> >>>>> 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