Create a new bucket from it's type and params.
public create ( string $bucketType, array $bucketParams ) : Smile\ElasticsuiteCore\Search\Request\BucketInterface | ||
$bucketType | string | Bucket type (must be a valid bucket type defined into the factories array). |
$bucketParams | array | Bucket constructor params. |
return | Smile\ElasticsuiteCore\Search\Request\BucketInterface |