Heim  >  Artikel  >  Backend-Entwicklung  >  sphinx的一个bug?在sphinxClient API没办法检索数据

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

WBOY
WBOYOriginal
2016-06-06 20:08:23903Durchsuche

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以上的,血的教训

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn