发布于 2015-06-10 23:11:25 | 2395 次阅读 | 评论: 1 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Sphinx 全文检索引擎

Sphinx是一个基于SQL的全文检索引擎,可以结合MySQL,PostgreSQL做全文搜索,它可以提供比数据库本身更专业的搜索功能,使得应用程序更容易实现专业化的全文检索。Sphinx特别为一些脚本语言设计搜索API接口,如PHP,Python,Perl,Ruby等,同时为MySQL也设计了一个存储引擎插件。


安装sphinx的php客户端

# wget -c http://pecl.php.net/get/sphinx-1.3.0.tgz
# tar zxvf sphinx-1.3.0.tgz
# cd sphinx-1.3.0
# phpize
# ./configure --with-php-config=/usr/local/php5410/bin/php-config
# make && make install

./configure 的时候出错,提示

checking for libsphinxclient headers in default path... not found configure: error: Cannot find libsphinxclient headers 。

解决方法

找了下libsphinxclient,在/www/soft/csft-3.2.13/api/libsphinxclient,之前安装的是coreseek3.2.13版。进入该目录,重新编译

cd libsphinxclient/
./configure make && make install

然后再次编译sphinx的php客户端就可以了



最新网友评论  共有(1)条评论 发布评论 返回顶部
ennuaw 发布于2015-06-25 15:23:28
谢谢分享学习啦
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务