Sphinx Indexer的参数
–config <file> 读取配置文件 (默认为 csft.conf)
–all 重新index所有配置文件中描述的index项
–quiet 只显示错误信息
–noprogress 不显示进度 (输入不是tty时自动启用)
–rotate 当索引结束时发送SIGHUP给searchd,使之自动rotate已更新的索引
–buildstops <output.txt> <N> build top N stopwords and write them to given file –buildfreqs store words frequencies to output.txt (used with –buildstops only)
–merge <dst-index> <src-index> 合并 ’src-index’ 到 ‘dst-index’ ‘dst-index’ 会保存有合并后的结果 ’src-index’ 不会被修改
–merge-dst-range <attr> <min> <max> 合并时过滤 ‘dst-index’, 仅保留 ‘attr’值在 ‘min’ 和 ‘max’ (包含)的记录.
Options are:
-h, --help display this help message
-c, -config <file> read configuration from specified file
(default is sphinx.conf)
--stop send SIGTERM to currently running searchd
(PID is taken from pid_file specified in config file)
--iostats log per-query io stats
Debugging options are:
--console run in console mode (do not fork, do not log to files)
-p, --port <port> listen on given port (overrides config setting)
-i, --index <index> only serve one given index
Examples:
索引重建
./indexer --config ../conf/hqman.conf main
./indexer --config ../conf/hqman.conf delta
关闭搜索
./searchd -c ../conf/hqman.conf --stop
合并索引
./indexer --merge main delta --config ../conf/hqman.conf
启动搜索
./searchd -c ../conf/hqman.conf
Sphinx 命令记录
最新推荐文章于 2022-05-12 16:48:47 发布