Once sphinx 0.9.9 becomes stable, I believe sql_query_killlist will
give us a way to handle this case:

http://www.sphinxsearch.com/docs/manual-0.9.9.html#conf-sql-query-killlist

I'm waiting anxiously :)

- Josh

On Apr 27, 9:29 am, Morten <[email protected]> wrote:
> Hey Pat,
>
> I think it should just try the delete and fail with a connection
> failed exception and leave it to the application developer to do
> something intelligent about it if he so wishes.
>
> Best,
>
> Morten
>
> On Apr 19, 11:08 am, Pat Allan <[email protected]> wrote:
>
> > Hmm, this is a tricky problem... should the system just assume that  
> > Sphinx is running? Should we try to catch certain exceptions?
>
> > What would you expect Rails/Thinking Sphinx to do if there was an  
> > assumption that Sphinx was running on a remote machine, but it wasn't  
> > actually running?
>
> > --
> > Pat
>
> > On 14/04/2009, at 10:19 PM, Morten wrote:
>
> > > Hi,
>
> > > When a record gets updated, it gets deleted from the core index when
> > > delta is enabled. The delete looks like this (from default_delta.rb):
>
> > >        client.update(
> > >          core_index_name(model),
> > >          ['sphinx_deleted'],
> > >          {instance.sphinx_document_id => [1]}
> > >        ) if instance && ThinkingSphinx.sphinx_running? &&
> > > instance.in_core_index?
>
> > > The problem with this is, that ThinkingSphinx.sphinx_running? tests
> > > for a local PID file. When searchd runs on a separate machine, that
> > > file doesn't exist.
>
> > > I'm not sure what the proper work around would be. I can come up with
> > > an abundance of hacks which are of nobody's interest ;-) Any tips?
>
> > > Morten
>
>
--~--~---------~--~----~------------~-------~--~----~
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