sphinx新建索引的一般流程

在sphinx中新建索引(不是新增数据)的一般流程:

  • 在sphinx.conf中增加index配置项
  • 手工重建索引,不要使用--rotate参数,例如
    CODE:
    1. /usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf --all

  • 重启searchd

这样才不会产生sphinx索引的临时.new.*文件

作者: Volcano 发表于September 20, 2008 at 5:19 pm

版权信息: 可以任意转载, 转载时请务必以超链接形式标明文章原始出处作者信息及此声明

Tags:

1 条评论 »

  1. sail 于 2009-11-11 @ 13:25:13 留言

    这就得停止服务
    加上–rotate建好索引后可以选择合并索引就不会有这个问题了

RSS 为此帖反馈评论

留条评论