Smile\ElasticsuiteCore\Search\Request\Aggregation\Bucket\Histogram::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $name, string $field, array $metrics, string $nestedPath = null, Smile\ElasticsuiteCore\Search\Request\QueryInterface $filter = null, Smile\ElasticsuiteCore\Search\Request\QueryInterface $nestedFilter = null, integer $interval = 1, integer $minDocCount )
$name string Bucket name.
$field string Bucket field.
$metrics array Bucket metrics.
$nestedPath string Nested path for nested bucket.
$filter Smile\ElasticsuiteCore\Search\Request\QueryInterface Bucket filter.
$nestedFilter Smile\ElasticsuiteCore\Search\Request\QueryInterface Nested filter for the bucket.
$interval integer Histogram interval.
$minDocCount integer Histogram min doc count.
    public function __construct($name, $field, array $metrics, $nestedPath = null, QueryInterface $filter = null, QueryInterface $nestedFilter = null, $interval = 1, $minDocCount = 0)
    {
        parent::__construct($name, $field, $metrics, $nestedPath, $filter, $nestedFilter);
        $this->interval = $interval;
        $this->minDocCount = $minDocCount;
    }