Search code examples
configurationsphinx

Sphinx Search multiple config files import


How can you use multiple config files on Spinx Search (preferably by including one inside another)? I need it for different environments, because the only difference between development, stage and production is the database credentials. Is there an easy way to achieve this?


Solution

  • On linux, can use dymamic config files.

    ie the config file can be executed by arbitary parsers. So the config file could be a PHP, perl or even shell script.

    http://sphinxsearch.com/blog/2013/11/05/sphinx-configuration-features-and-tricks/

    More: https://www.google.com/search?q=sphinx+search+shebang