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 ) : |
||
$attribute | string | attribute name |
$min | float | minimum attribute value |
$max | float | maximum attribute value |
$exclude | boolean | whether the filter is exclusive or inclusive |
Результат |
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); }