public function dateRange($alias, $field, $format, array $ranges)
    {
        $aggregation = new DateRangeAggregation($alias, $field, $format, $ranges);

        $this->append($aggregation);
    }
public function dateRange($alias, $field, $format, array $ranges)
    {
        $aggregation = new DateRangeAggregation($alias, $field, $format, $ranges);

        $this->append($aggregation);
    }
public function dateRange ( $ alias , $ field , $ format , array $ ranges ) { $ aggregation = new DateRangeAggregation ( $ alias , $ field , $ format , $ ranges ) ; $ this -> append ( $ aggregation ) ; }
Add a date range aggregate.

@param $alias
@param $field
@param $format
@param array $ranges

@internal param null $from
@internal param null $to
Add a date range aggregate .