setFilter() public method

Set values filter; only match records where $attribute value is in (or not in) the given set
public setFilter ( string $attribute, array $values, boolean $exclude = false ) : SphinxClient
$attribute string attribute name
$values array value set
$exclude boolean whether the filter is exclusive or inclusive
return SphinxClient
 public function testFilterExclude()
 {
     $sphinx = new SphinxClient();
     $sphinx->setFilter('attr1', array(1, 2, 3), true);
     $results = $sphinx->query('bb');
     $this->assertEquals($results['total'], 2);
 }
 /**
  * {@inheritdoc}
  */
 public function setFilter($attribute, array $values, $exclude = false)
 {
     return $this->proxy->setFilter($attribute, $values, $exclude);
 }