![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sphinx
小人物大梦想
这个作者很懒,什么都没留下…
展开
-
sphinx 创建索引报错 WARNING: could not open pipe (GetLastError()=5)
原因是权限不够,要用管理员身份打开cmd原创 2019-01-10 11:59:06 · 780 阅读 · 0 评论 -
centos7 安装sphinx和扩展
先说下原理: sphinx将mysql数据表的字段导出定义好要全文索引的MySQL的字段,例如:user 表里的nickname(昵称)和realname(真实姓名),假如我搜索小华 ,就会从nickname和realname去匹配,可以完全匹配也可以模糊匹配按权重排序得到的是用户id, 然后我拿到用户id去user表里去找出详细信息,主键查询很快的 给出我的配置 # # Mi...原创 2018-06-28 10:41:58 · 3516 阅读 · 0 评论 -
sphinx 不关闭进程更新索引 和增量索引
更新单个at_resource 索引 /usr/local/sphinx211/bin/indexer -c /usr/local/sphinx211/etc/sphinx.conf at_resource --rotate 更新全部索引 /usr/local/sphinx211/bin/indexer -c /usr/local/sphinx211/etc/sphinx.conf...原创 2019-01-11 10:18:28 · 609 阅读 · 2 评论 -
sphinx 查看执行失败报错原因
$at_resource =$sphinx->Query($keyword,'at_resource');//资源 $error=$sphinx->GetLastError(); halt($error);原创 2019-01-11 12:05:12 · 695 阅读 · 0 评论 -
sphinx 字段区间查询
这里根据updatetime字段查六个月内满足条件的数据 $sixMothAgotime=strtotime( date('Y-m-d H:i:s')." -180 day"); $sphinx->setFilterRange('updatetime',$sixMothAgotime,time()); $at_resource =$sphinx->Query($keywor...原创 2019-01-11 14:10:16 · 641 阅读 · 2 评论