Home  >  Article  >  Backend Development  >  sphinx的一个bug?在sphinxClient API没办法检索数据

sphinx的一个bug?在sphinxClient API没办法检索数据

WBOY
WBOYOriginal
2016-06-06 20:08:23902browse

sphinx的phpAPI无法查出数据,但是在命令行(cli)却可以,好疑惑
环境:ubuntu14.04 php5.5,mysql5.6

搜索词:”陈嘉俊“
不知道为什么sphinx的phpAPI无法查出数据,但却也有hits属性和对应的字段出现,应该是代表数据匹配到了,但是数据却没有,为什么?
在浏览器是没有输出的
sphinx的一个bug?在sphinxClient API没办法检索数据

在命令行却是有数据了:
sphinx的一个bug?在sphinxClient API没办法检索数据

这是PHP的代码

sphinx的一个bug?在sphinxClient API没办法检索数据

回复内容:

sphinx的phpAPI无法查出数据,但是在命令行(cli)却可以,好疑惑
环境:ubuntu14.04 php5.5,mysql5.6

搜索词:”陈嘉俊“
不知道为什么sphinx的phpAPI无法查出数据,但却也有hits属性和对应的字段出现,应该是代表数据匹配到了,但是数据却没有,为什么?
在浏览器是没有输出的
sphinx的一个bug?在sphinxClient API没办法检索数据

在命令行却是有数据了:
sphinx的一个bug?在sphinxClient API没办法检索数据

这是PHP的代码

sphinx的一个bug?在sphinxClient API没办法检索数据

结贴。
出现此问题是版本问题。
pecl的sphinx拓展千万别装1.3 0以上的,血的教训

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