Hi Lawrence

There's two parts: firstly, as you've guessed, you can set the version in your 
sphinx.yml file:
  version: 0.9.9

But also, you'll want to tell Thinking Sphinx in your app to stop trying to 
figure out whether Sphinx is running (since it has no access to the pid file):
  ThinkingSphinx.remote_sphinx = Rails.environment.production?

Put that at the end of your environment.rb (Rails 2) or application.rb (Rails 
3). It doesn't work in config/environments/production.rb, as TS isn't loaded at 
that point (and this would just cause it to load, and then reload at the normal 
time, resetting the value).

Cheers

-- 
Pat

On 04/11/2010, at 10:29 AM, Lawrence wrote:

> Hi,
> 
> In our setup sphinx (searchd and indexer) are running on a server
> different from the web servers that require thinking sphinx. We don't
> install sphinx on the web servers.
> 
> Whenever we start the app on the web servers we get the message
> "Sphinx cannot be found on your system. [etc. etc.]".
> 
> Things seem to work though.
> 
> Is there a way to suppress that message?  Perhaps by allowing to
> explicitly provide the riddle version to use (in sphinx.yml), which
> the ThinkingSphinx::AutoVersion class should then honor?
> 
> 
> Cheers,
> Lawrence
> 
> -- 
> 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.
> 

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