Sam--

I would check the PATH as your mongrel sees it.  I was experiencing the same
symptom (index_delta being called, but deltas not updating).  Adding a
statement to write ENV to the log revealed that my problem was that PATH for
the mongrel processes did not include /usr/local/bin, where my sphinx
binaries were installed.

If this turns out to be the problem, you can remedy by adding something
like:

ENV['PATH'] = "#{ENV['PATH']}:/usr/local/bin"

to your config/environment.rb


Hope this helps,

Solomon

On Sun, Mar 1, 2009 at 5:33 PM, Sam <[email protected]> wrote:

>
> I got excited and lied. This did not fix my problem. The index_delta
> now gets called, but I'm still not getting my created/updated records
> in search results.
>
> -Sam
>
>
> On Mar 1, 5:17 pm, Sam <[email protected]> wrote:
> > Nope, no jruby. I should have specified my environment: rails 2.2.0
> > over mongrel in development, ruby 1.8.6, Sphinx 0.9.8.1,
> > ThinkingSphinx 0.9.5, MySql 5.1.30
> >
> > -sam
> >
> > On Mar 1, 5:09 pm, Steven Bristol <[email protected]> wrote:
> >
> > > 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