* There's no specific file to require for cucumber - because there's no longer 
any cucumber-specific test helpers.
* If you need to check if Sphinx is running locally, 
ThinkingSphinx::Configuration.instance.controller.running? will do the job. 
Remotely, you're out of luck (TS now just generally presumes it is, and in some 
cases doesn't care if an error gets raised).
* If you're running Sphinx on another server, then yes, just specify a 
different address in config/thinking_sphinx.yml.
* As for logging in the console, it's a little tacky, but this line does the 
trick:

  ThinkingSphinx::ActiveRecord::LogSubscriber.logger = ActiveRecord::Base.logger

Cheers

-- 
Pat

On 07/08/2013, at 7:39 AM, Daniel Vandersluis wrote:

> Oh and one more question - ThinkingSphinx.remote_sphinx seems to have been 
> removed too, is it enough to just specify a non-localhost IP in the 
> configuration YAML?
> 
> On Tuesday, August 6, 2013 4:15:26 PM UTC-4, Daniel Vandersluis wrote:
> In trying to come up with a test app that fails for you, I seem to have 
> gotten my app to work (there were some things that have changed between TS2 
> and TS3 that may have caused the problem). Can you confirm/address the 
> following:
>       • require 'cucumber/thinking_sphinx/external_world' is no longer 
> necessary / doesn't exist. Is there a different file that needs to be 
> required for cucumber?
>       • ThinkingSphinx.sphinx_running? no longer exists - is there a 
> replacement?
>       • Is there any way to add Sphinx output to the rails console?
> 
> On Saturday, August 3, 2013 4:37:02 AM UTC-4, Pat Allan wrote:
> This sounds vaguely familiar, but I can't remember when I've previously seen 
> this issue. Is it possible for you to create a test app that can reproduce 
> the problem that I can then use to fix things? 
> 
> -- 
> Pat 
> 
> On 03/08/2013, at 3:39 AM, Daniel Vandersluis wrote: 
> 
> > I'm not sure why but TS3 doesn't seem to be creating a proper configuration 
> > file when ThinkingSphinx::Test.init is run in Cucumber; this causes searchd 
> > to not be able to start, and the test fails. 
> > 
> > When I run the following manually through the console, searchd starts: 
> > 
> > rake ts:configure RAILS_ENV=cucumber 
> > rake ts:start RAILS_ENV=cucumber 
> > 
> > However, when I run it through cucumber, I get: 
> > 
> > Failed to start searchd daemon. Check 
> > /Users/daniel/RubymineProjects/talentnest/log/cucumber.searchd.log. 
> > Failed to start searchd. Check the log files for more information. 
> > 
> > The configuration file generated in cucumber looks like: 
> > 
> > indexer 
> > { 
> > } 
> > 
> > searchd 
> > { 
> >   listen = localhost:9315 
> >   log = /Users/daniel/project/log/searchd.log 
> >   query_log = /Users/daniel/project/log/searchd.query.log 
> >   pid_file = /Users/daniel/project/log/searchd.cucumber.pid 
> >   max_matches = 25000 
> > } 
> > 
> > As you can see, no indexes are defined. When running rake ts:configure as 
> > above, it adds indexes to the config. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Thinking Sphinx" group. 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected]. 
> > To post to this group, send email to [email protected]. 
> > Visit this group at http://groups.google.com/group/thinking-sphinx. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> >   
> >   
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to