博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年5月6日

摘要: shpinx.php 引入类 SphinxClient.php 输出结果: 阅读全文

posted @ 2016-05-06 10:58 红与黑hyh 阅读(288) 评论(0) 推荐(0) 编辑

摘要: cd /home/packages wget http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz tar xzvf sphinx-0.9.9.tar.gz cd sphinx-0.9.9/api/libsphinxclient vim sphinxcl 阅读全文

posted @ 2016-05-06 10:16 红与黑hyh 阅读(178) 评论(0) 推荐(0) 编辑

摘要: 配置实例 3.1、数据源。 这里我们采用 mysql的数据源。具体情况如下: Mysql server:192.168.1.10 Mysql db :test Mysql 表:test.sphinx_article mysql> desc sphinx_article; ———– ——————— —— —– ——— —————- | Field | Type | Null | Key | De... 阅读全文

posted @ 2016-05-06 09:46 红与黑hyh 阅读(243) 评论(0) 推荐(0) 编辑

摘要: sphinx的配置文件是在配置的时候最容易出错的了: 基本概念: source:数据源,数据是从什么地方来的。 index:索引,当有数据源之后,从数据源处构建索引。索引实际上就是相当于一个字典检索。有了整本字典内容以后,才会有字典检索。 searchd:提供搜索查询服务。它一般是以deamon的形 阅读全文

posted @ 2016-05-06 09:39 红与黑hyh 阅读(221) 评论(0) 推荐(0) 编辑