views:

73

answers:

2

I'm using Sphinx through Thinking Sphinx in a Ruby on Rails project. When I create seed data and all the time, it's quite verbose, printing this:

using config file '/Users/pupeno/projectx/config/development.sphinx.conf'...
indexing index 'user_delta'...
collected 7 docs, 0.0 MB
collected 0 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 99.6% done
total 7 docs, 159 bytes
total 0.042 sec, 3749.29 bytes/sec, 165.06 docs/sec
Sphinx 0.9.8.1-release (r1533)
Copyright (c) 2001-2008, Andrew Aksyonoff

for every record that is created or so. Is there a way to suppress that output?

A: 

Run sphinx with --quiet flag. I'm not using TS, though, so I don't know how to add make TS to use this flag. hth.

Evgeny Shadchnev
I'm not running Sphinx myself. I suppose Thinking Sphinx is running it somehow, all I'm doing is creating records. Unfortunately, I can't find a way to specify extra flags.
J. Pablo Fernández
This is a hack but if you open RAILS_ROOT/vendor/plugins/thinking-sphinx/tasks.rb and then on line 69 add --quiet option before --config option, it should do the trick.
Evgeny Shadchnev
+1  A: 

There is actually a setting to stop this - you'll want to set it at the end of your environment.rb file:

ThinkingSphinx.suppress_delta_output = true
pat