PHP Application Sphinx Interface related Operations

Source: Internet
Author: User
Emailid Range $sphinx->setidrange ($min, $max);  attribute filtering, the filtered properties must be set in the config file Sql_attr_    , before we define these    sql_attr_uint            = Fromid    sql_attr_uint            = toid    Sql_attr_timestamp  = sendtime//If you want to modify these properties again, remember to re-establish the index after the configuration is complete to take effect//Specify some value $sphinx->setfilter (' Fromid ', Array ( ));    The value of Fromid can only be 1 or 2//and the above conditions, can be added to the third parameter $sphinx->setfilter (' Fromid ', Array (), false);    The value of Fromid cannot be 1 or 2//specify a range of values $sphinx->setfilterrange (' toid ', 5, $);    The value of toid between 5-200//and the above conditions, can be added to the third parameter $sphinx->setfilterrange (' Toid ', 5, $, false);    The value of toid is outside of 5-200//Perform search $result = $sphinx->query (' keywords ', ' * ');

PHP Application Sphinx Interface related Operations

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.