Closed nlevchuk closed 9 years ago
I realise this has been sitting neglected for three months - sorry! - but I've been thinking about this, and I have a feeling what you're trying to do is not going to work, because of how Sphinx behaves.
Namely: every single document in Sphinx needs to have a unique id (hence the need for primary key offsets in the sql_query values in the generated configuration files). If you're having multiple apps all use a single daemon (and thus, a single configuration file), you're going to be messing with the SQL statements Thinking Sphinx generates as well.
If that was not an issue, then I guess I would be open to a patch which would make the searchd
and indexer
sections optional - but only when a particular setting is set for Riddle (thus, it's not the default behaviour)... but I fear Sphinx itself is going to be causing deeper problems than Riddle or Thinking Sphinx.
Hi, I use thinking_sphinx gem in my projects and I'd like to create only one sphinx config file for any of my applications that use sphinx on production server. Only one searchd process. I have an idea to do
searchd
andindexer
configuration's sections as optional. Everything will still work on development and test ENVs as before. Currently riddle generates sphinx config file for each applications separately with indexer and searchd sections as you know. What do you think? If you agree i will send pull request.