Discussion:
How to add ruby/dynamic code inside sphinx conf
Loganathan Sellappa
2017-05-02 12:54:09 UTC
Permalink
Hello,

I'm using Sphinx search engine for my application, and I would like to add
ruby code inside the sphinx.conf file to update some values dynamically
based on my application server hostname? Is it possible to execute the ruby
code inside sphinx.conf? Something like below

{
type = mysql
sql_host = testHost
sql_user = test
* sql_pass = <%= D.decrypt("encrypted password") %>*
sql_db = {{database_name}}
sql_query_pre = SET TIME_ZONE = '+0:00'
sql_query_pre = SET SESSION group_concat_max_len = 32768
sql_query_pre = SET NAMES utf8
}

regards,
Loganathan
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert Lehmann
2017-05-02 15:02:05 UTC
Permalink
Hey Loganathan,

Your email reached sphinx-dev@, the mailing list for development of the
Sphinx documentation generator <http://www.sphinx-doc.org>. You might have
been looking for the Sphinx search engine <http://sphinxsearch.com/>, which
seems to have community resources somewhere else
<http://sphinxsearch.com/community/>.

Hope this helps,
Robert
Post by Loganathan Sellappa
Hello,
I'm using Sphinx search engine for my application, and I would like to add
ruby code inside the sphinx.conf file to update some values dynamically
based on my application server hostname? Is it possible to execute the ruby
code inside sphinx.conf? Something like below
{
type = mysql
sql_host = testHost
sql_user = test
* sql_pass = <%= D.decrypt("encrypted password") %>*
sql_db = {{database_name}}
sql_query_pre = SET TIME_ZONE = '+0:00'
sql_query_pre = SET SESSION group_concat_max_len = 32768
sql_query_pre = SET NAMES utf8
}
regards,
Loganathan
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...