Monday, February 28, 2011

The Sphinx configuration file

Sphinx uses data in a MySQL table to index and search. Before it can do this though it needs to consult its configuration file. The configuration file tells Sphinx where the data is stored, how to connect to the database to get it, what query to use to retrieve the data, where the index should be stored, whether stemming is allowed, and so on. Without a configuration file, Sphinx lacks the instructions to do its job. For anyone setting up a Sphinx search, then, knowing what to put in the configuration file is important.

No comments: