setFilterFloatRange() public method

Set float range filter; only match records if $attribute value between $min and $max (inclusive)
public setFilterFloatRange ( string $attribute, float $min, float $max, boolean $exclude = false ) : SphinxClient
$attribute string attribute name
$min float minimum attribute value
$max float maximum attribute value
$exclude boolean whether the filter is exclusive or inclusive
return SphinxClient
Ejemplo n.º 1
0
 public function testFilterFloatRangeExclude()
 {
     $sphinx = new SphinxClient();
     $sphinx->setFilterFloatRange('lat', 0.2, 0.4, true);
     $results = $sphinx->query('bb');
     $this->assertEquals($results['total'], 2);
 }
 /**
  * {@inheritdoc}
  */
 public function setFilterFloatRange($attribute, $min, $max, $exclude = false)
 {
     return $this->proxy->setFilterFloatRange($attribute, $min, $max, $exclude);
 }