问题
If I create run my conf file on my index can Sphinx search then run w/o the conf file or associated wordforms for user search or are those files still needed for reference? My understanding so far is that when you process the index with rotate the .idx itself contains all that information needed? Basically trying to release production version of the search and not expose the config/wordforms on the server.
回答1:
You will need the config file on the server, it contains some important stuff.
(like getting the list of indexes, and the folder to load them from. As well as log files, pid file paths etc)
... you could perhaps get away with having a simplified config file, that doesnt list all of the settings for the index. Just the name and path would probably be enough. As the rest would be read from the .sph file.
BUt as they .sph file is on the server, the config can be recreated from it, so by not providing a config file, you just making it slightly harder to access the index config, not impossible.
... small wordform files may be embedded in the index file for simplicity, but if the file is big, searchd will load it direct from the file. (only the path stored in the sph file)
Honestly dont see what you hope to gain by being secretative about the index data. Its in the index files anyway.
来源:https://stackoverflow.com/questions/39808942/does-runtime-sphinx-need-the-conf-file