setFilterRange() public méthode

Set range filter; only match records if $attribute value between $min and $max (inclusive)
public setFilterRange ( string $attribute, integer $min, integer $max, boolean $exclude = false ) : SphinxClient
$attribute string attribute name
$min integer minimum attribute value
$max integer maximum attribute value
$exclude boolean whether the filter is exclusive or inclusive
Résultat SphinxClient
 public function testFilterRangeExclude()
 {
     $sphinx = new SphinxClient();
     $sphinx->setFilterRange('attr1', 4, 5, true);
     $results = $sphinx->query('bb');
     $this->assertEquals($results['total'], 3);
 }
 /**
  * {@inheritdoc}
  */
 public function setFilterRange($attribute, $min, $max, $exclude = false)
 {
     return $this->proxy->setFilterRange($attribute, $min, $max, $exclude);
 }