您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

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

2024/3/14 6:21:10发布39次查看
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 -alsb version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchdistributor id: centosdescription: centos release 5.5 (final)release: 5.5codename: final

安装sphinx 下载地址wget http://sphinxsearch.com/files/archive/sphinx-0.9.9.tar.gztar -zxvf sphinx-0.9.9.tar.gzcd 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.gztar -zxvf mmseg-3.1.tar.gzcd mmseg-3.1./configure --prefix=/usr/local/mmsegmake && 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 简介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 -alsb version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchdistributor id: centosdescription: centos release 5.5 (final)release: 5.5codename: final

安装sphinx 下载地址wget http://sphinxsearch.com/files/archive/sphinx-0.9.9.tar.gztar -zxvf sphinx-0.9.9.tar.gzcd 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.gztar -zxvf mmseg-3.1.tar.gzcd mmseg-3.1./configure --prefix=/usr/local/mmsegmake && 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了
不好意思,我晕了,其实我在写文章,怎么跑到问答里来了啊~!
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product