09/04 8

Sphinx 命令记录 不指定

jasonyu , 16:34 , 我的收藏 » search , 评论(0) , 引用(0) , 阅读(1594) , Via 本站原创 | |
官方文档 :
http://www.sphinxsearch.com/docs/


Sphinx Indexer的参数

–config 读取配置文件 (默认为 csft.conf)

–all 重新index所有配置文件中描述的index项

–quiet 只显示错误信息

–noprogress 不显示进度 (输入不是tty时自动启用)

–rotate 当索引结束时发送SIGHUP给searchd,使之自动rotate已更新的索引

–buildstops build top N stopwords and write them to given file –buildfreqs store words frequencies to output.txt (used with –buildstops only)

–merge 合并 ’src-index’ 到 ‘dst-index’ ‘dst-index’ 会保存有合并后的结果 ’src-index’ 不会被修改

–merge-dst-range 合并时过滤 ‘dst-index’, 仅保留 ‘attr’值在 ‘min’ 和 ‘max’ (包含)的记录.




Options are:
-h, --help        display this help message
-c, -config     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     listen on given port (overrides config setting)
-i, --index     only serve one given index

Examples:
索引重建
./indexer --config ../conf/sphinx.conf main
./indexer --config ../conf/sphinx.conf delta
关闭搜索
./searchd -c ../conf/sphinx.conf  --stop
合并索引
./indexer --merge main delta --config ../conf/sphinx.conf
./indexer --merge test1 test1stemmed --merge-dst-range deleted 0 0 --rotate
启动搜索
./searchd -c ../conf/sphinx.conf
Tags:
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]