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

__construct() public method

Constructor.
public __construct ( string $name, array $queries, array $metrics = [], string $nestedPath = null, Smile\ElasticsuiteCore\Search\Request\QueryInterface $filter = null, Smile\ElasticsuiteCore\Search\Request\QueryInterface $nestedFilter = null )
$name string Bucket name.
$queries array Query group children queries.
$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.
    public function __construct($name, array $queries, array $metrics = [], $nestedPath = null, QueryInterface $filter = null, QueryInterface $nestedFilter = null)
    {
        parent::__construct($name, $name, $metrics, $nestedPath, $filter, $nestedFilter);
        $this->queries = $queries;
    }