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