关于coreseek介绍

http://www.coreseek.cn/products-install/install_on_bsd_linux/

mmseg 安装(中文分词)

# wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz

cd mmseg-3.2.14

#./bootstrap

#./configure --prefix=/usr/local/mmseg3

# make

# make install

sphinx 安装

#cd coreseek-4.1/csft-4.1

#./buildconf.sh

#./configure --prefix=/opt/sphinx \

  --with-mmseg \

  --with-mmseg-includes=/opt/mmseg/include/mmseg \

  --with-mmseg-libs=/opt/mmseg/lib/ \

  --with-mysql=/opt/mysql

#make

#make install

启动
#/opt/sphinx/bin/indexer --config /opt/sphinx/etc/sphinx.conf --all #创建索引
#/opt/sphinx/bin/searchd --config /opt/sphinx/etc/sphinx.conf #启动索引服务
#/opt/sphinx/bin/indexer --config /opt/sphinx/etc/sphinx.conf --rotate --all #重建增量索引
crontab五分钟重建增量索引
#crontab -e
*/5 * * * */opt/sphinx/bin/indexer --config /opt/sphinx/etc/sphinx.conf --rotate --all

sphinx存储引擎 for mysql支持
将sphinx程序目录的mysqlse复制到mysql程序目录storage
# cp coreseek-3.2.14/csft-4.1/mysqlse /root/soft/mysql-5.1.61/storage/shpinx
# cd /root/soft/mysql-5.1.61
# sh BUILD/autorun.sh
# ./configure \
--prefix=/opt/mysql \
--enable-assembler \
--with-charset=utf8 \
--with-extra-charsets=complex \
--with-plugins=partition,innobase,myisam,sphinx \
--enable-thread-safe-client \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static
# make

# make install

查看mysql sphinx存储引擎

mysql> show engines;

Engine | Support | Comment

SPHINX | YES | Sphinx storage engine

配置/opt/sphinx/etc/sphinx.conf

详细查看 http://www.coreseek.cn/docs/coreseek_4.1-sphinx_2.0.1-beta.html