Elastica\QueryBuilder\DSL\Aggregation::histogram PHP Метод

histogram() публичный Метод

histogram aggregation.
public histogram ( string $name, string $field, integer $interval ) : Histogram
$name string the name of this aggregation
$field string the name of the field on which to perform the aggregation
$interval integer the interval by which documents will be bucketed
Результат Elastica\Aggregation\Histogram
    public function histogram($name, $field, $interval)
    {
        return new Histogram($name, $field, $interval);
    }