On Sun, Mar 1, 2009 at 7:08 PM, Sam <[email protected]> wrote:
>
> I've been having trouble with delta indexing lately. I've got
> the :delta property set on my model, and I'm fairly certain that the
> indexer binary is in the path, since I've got bin_path set in config/
> sphinx.yml, but whenever I add/remove or modify a record the indexer
> does not appear to run, and I get no log output indicating that it
> has. The delta field on the record gets updated to TRUE just fine, but
> the delta index isn't updated and searching for the new/updated record
> does not return any results.
>
> My debugging efforts have revealed that the problem boils down to
> index_delta not being called when it should be. I've changed
> 'after_commit :index_delta' in thinking-sphinx/active_record.rb to
> 'after_save :index_delta' and it's now working in my basic testing
> scenarios. Can anyone shed some light on why the after_commit filter
> wasn't working for me, and whether changing this to after_save is
> going to cause me any unforeseen problems?
>
> Thanks in advance,
> Sam
>


Are you running jruby? I'm having the same problem on jruby.


cheers,
steven brisotl

--~--~---------~--~----~------------~-------~--~----~
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