yii\elasticsearch\Connection::createBulkCommand PHP Метод

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

Creates a bulk command for execution.
С версии: 2.0.5
public createBulkCommand ( array $config = [] ) : BulkCommand
$config array the configuration for the [[BulkCommand]] class
Результат BulkCommand the DB command
    public function createBulkCommand($config = [])
    {
        $this->open();
        $config['db'] = $this;
        $command = new BulkCommand($config);
        return $command;
    }