Home  >  Article  >  Backend Development  >  学习sphinx,sphinx搜索学习ppt_PHP教程

学习sphinx,sphinx搜索学习ppt_PHP教程

WBOY
WBOYOriginal
2016-07-12 08:54:43864browse

学习sphinx,sphinx搜索学习ppt

在我们php开发中如何使用sphinx技术?

答:对应MySQL数据库中的字段,就是将字段中的中文信息拆分成多个词语,然后对这些词语建立索引。以后查询的时候,先去查询这些索引文件,然后返回这些满足条件的记录的主键id,然后根据主键id查询MySQL数据库,返回记录。

 

 

什么是sphinx?(百度百科)

注意:对于sphinx来说,单表千万条记录,响应的时间都是毫秒级别的。

注意:默认sphinx只支持英文和俄文

官网:

http://sphinxsearch.com/

 

由于Sphinx只支持以上两种语言,所以有第三方公司为sphinx开发了中分分词包,叫做coreseek

官网:

http://www.coreseek.cn/

客户案例:http://www.coreseek.cn/products/ft_powered/

 

 

注意两点:

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1119058.htmlTechArticle学习sphinx,sphinx搜索学习ppt 在我们php开发中如何使用sphinx技术? 答:对应MySQL数据库中的字段,就是将字段中的 中文信息 拆分成多个词语...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn