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:

留条评论