public function range($field, array $attributes = [])
    {
        $query = new RangeQuery($field, $attributes);

        $this->append($query);

        return $this;
    }
public function range($field, array $attributes = [])
    {
        $query = new RangeQuery($field, $attributes);

        $this->append($query);

        return $this;
    }
public function range ( $ field , array $ attributes = [ ] ) { $ query = new RangeQuery ( $ field , $ attributes ) ; $ this -> append ( $ query ) ; return $ this ; }
Add a range query.

@param string $field
@param array  $attributes

@return $this
Add a range query .