Sphinx 常用命令
启动服务:
searchd -c /usr/local/sphinx/etc/sphinx.conf
建立索引:
indexer -c /usr/local/sphinx/etc/sphinx.conf --all
停止服务:
searchd -c /usr/local/sphinx/etc/sphinx.conf --stop
更新所有索引:
indexer -c /usr/local/sphinx/etc/sphinx.conf --all --rotate
增量索引:
indexer -c /usr/local/sphinx/etc/sphinx.conf --rotate delta
合并索引:
indexer -c /usr/local/sphinx/etc/sphinx.conf --rotate --merge main delta
更新单个索引:
indexer -c /usr/local/sphinx/etc/sphinx.conf --rotate xxxx
命令行搜索
search -c /usr/local/sphinx/etc/sphinx.conf 我