public function range($alias, $field, array $ranges, $keyed = false)
    {
        $aggregation = new RangeAggregation($alias, $field, $ranges, $keyed);

        $this->append($aggregation);
    }
public function range($alias, $field, array $ranges, $keyed = false)
    {
        $aggregation = new RangeAggregation($alias, $field, $ranges, $keyed);

        $this->append($aggregation);
    }
public function range ( $ alias , $ field , array $ ranges , $ keyed = false ) { $ aggregation = new RangeAggregation ( $ alias , $ field , $ ranges , $ keyed ) ; $ this -> append ( $ aggregation ) ; }
Add a range aggregate.

@param string $alias
@param string $field
@param array  $ranges
@param bool   $keyed
Add a range aggregate .