The php api of linux-sphinx cannot find data, but the command line (cli) can. Why?

Source: Internet
Author: User
Environment: ubuntu14.04php5.5, mysql5.6 search term: Chinese users do not know why sphsf-phpapi cannot find data, but there are also hits attributes and corresponding fields, which should indicate that the data is matched, but there is no data. Why? However, it is normal to search through the command line...

Environment: ubuntu14.04 php5.5, mysql5.6

Search term: Made in China
I don't know why sphinx's PHP API cannot find data, but there are also hits attributes and corresponding fields. It should indicate that the data matches, but the data does not exist. Why?

But the command line search can be found normally. Why ???

This is the PHP code.

Search for confusion
It is not convenient because it is developed on a virtual machine.

Reply content:

Environment: ubuntu14.04 php5.5, mysql5.6

Search term: Made in China
I don't know why sphinx's PHP API cannot find data, but there are also hits attributes and corresponding fields. It should indicate that the data matches, but the data does not exist. Why?

But the command line search can be found normally. Why ???

This is the PHP code.

Search for confusion
It is not convenient because it is developed on a virtual machine.

It indicates that there is a problem with the api. One problem I encountered before is that the api version is inconsistent with the sphsf-version, which leads to an error and is for reference only.

Close the post.
This is a version issue.
Pecl's sphinx expansion should never be installed with more than 1.3, blood lessons

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.