I
I
IgaIst2013-07-01 11:09:29
Sphinx
IgaIst, 2013-07-01 11:09:29

Include in config

Is it possible, and if so, how, to implement this functionality:

There is a sphinx config file:
/etc/sphinxsearch/sphinx.conf
Is it possible to somehow include another configuration file in it, for example, located in:
/www/proj/sphinx .conf

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JustStas, 2013-07-01
@JustStas

There is no native support for includes, but for this you can write a config in a scripting language, specifying the desired interpreter. Here
are a couple of examples:
on bash: http://adw0rd.com/2009/07/23/sphinx-include/#.UdF1R229CUk
on php: http://sphinxsearch.com/forum/view.html?id=1340
dynamic config generation in php http://www.ivinco.com/blog/scripting-in-sphinx-config/

A
Alexander Skakunov, 2013-07-01
@alex4

Yes, my config is also rebuilt, it's quite convenient.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question