Sphinx 命令记录

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值