首页 > Centos 编译安装sphinx-0.9.9全文检索

Centos 编译安装sphinx-0.9.9全文检索

Sphinx 简介

Sphinx是开源的搜索引擎,它支持英文的全文检索。所以如果单独搭建Sphinx,你就已经可以使用全文索引了。但是往往我们要求的是中文索引,怎么做呢?国人提供了一个可供企业使用的,基于Sphinx的中文全文检索引擎。也就是说Coreseek实际上的内核还是Sphinx。那么他们的版本对应呢?

安装注意

Coreseek发布了3.2.14版本和4.1版本等多个版本

3.2.14版本是2010年发布的,它是基于Sphinx0.9.9搜索引擎的。
4.1版本是2011年发布的,它是基于Sphinx2.0.2以后的

系统版本:

[root@localhost ~]# lsb_release  -a

LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: CentOS

Description: CentOS release 5.5 (Final)

Release: 5.5

Codename: Final

安装Sphinx 下载地址

wget http://sphinxsearch.com/files/archive/sphinx-0.9.9.tar.gz
tar -zxvf sphinx-0.9.9.tar.gz
cd sphinx-0.9.9
./configure --prefix=/usr/local/sphinx/ --with-mysql=/usr/local/mysql/ --enable-id64 
make 
make install 
注意:采用这种方式安装不支持中文分词。

安装 Coreseek 官网安装

安装mmseg(coreseek所使用的词典)

wget http://www.coreseek.cn/uploads/csft/3.1/Source/mmseg-3.1.tar.gz
tar -zxvf mmseg-3.1.tar.gz
cd mmseg-3.1
./configure --prefix=/usr/local/mmseg
make && make install

安装coreseek

这里不使用python数据源,若需要,请加上 --with-python,在mmseg上一定要对应路径

wget http://www.coreseek.cn/uploads/csft/3.1/Source/csft-3.1.tar.gz
tar -zxvf csft-3.1.tar.gz
cd csft-3.1
./configure --prefix=/usr/local/coreseek --with-mmseg-includes=/usr/local/mmseg/include/mmseg --with-mmseg-libs=/usr/local/mmseg/lib --without-iconv
make
make install

参考资料

官方手册:http://www.coreseek.cn/docs/coreseek3.2-sphinx0.9.9.html


不好意思,我晕了,其实我在写文章,怎么跑到问答里来了啊~!


我开始也考虑用sphinx,后来看了下xunsearch,简单方便,性能也行。。就用xunsearch了

【热门文章】
【热门文章】