If you are using Ruby-On-Rails, both the Sphincter and Ultrasphinx plugins will automatically configure sphinx.