When updating an index in sphinx.conf is restarting searchd in sphinx always required?

给你一囗甜甜゛ 提交于 2019-12-01 06:23:18

It depends on your sphinx version. In the latest versions just about anything (except maybe the searchd config section) will work with changing the config file.

Just changing the settings on an individual index, a --rotate indexing of the particular index is enough. If you change the settings of particular index, and dont actully reindex it, searchd probably wont pickup the changes. (because it reads stuff from the index header, not direct from conf file)

I just tested adding a index, and removing a index. both happened with a seemless rotate. Sphinx 2.0.1-beta (r2792)

Prior to 0.9.9-rc1 - a restart would be required for most config file changes.

You have to restart searchd when modifying the sphinx.conf file.

Rotate will not effect new index additions to your sphinx.conf file - it reindexes an analogous index of the original. Kind of like having a file and file-copy(1) then swapping them over. If you modify the .conf file its sort of like declaring a brand new index. Thus --rotate does not work if the exact index does not previously exist. See; http://sphinxsearch.com/docs/2.0.1/ref-indexer.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!