Sphinx 基础命令

/ 0评 / 0

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 我

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注