yii\elasticsearch\Connection::createBulkCommand PHP Method

createBulkCommand() public method

Creates a bulk command for execution.
Since: 2.0.5
public createBulkCommand ( array $config = [] ) : BulkCommand
$config array the configuration for the [[BulkCommand]] class
return BulkCommand the DB command
    public function createBulkCommand($config = [])
    {
        $this->open();
        $config['db'] = $this;
        $command = new BulkCommand($config);
        return $command;
    }