elasticsearch\Connection createCommand()

createCommand() public method Creates a command for execution. public yii\elasticsearch\Command createCommand ( $config = [] )$config array The configuration for the Command class return yii\elasticsearch\Command The DB command

elasticsearch\Connection createBulkCommand()

createBulkCommand() public method (available since version 2.0.5) Creates a bulk command for execution. public yii\elasticsearch\BulkCommand createBulkCommand ( $config = [] )$config array The configuration for the yii\elasticsearch\BulkCommand class return yii\elasticsearch\BulkCommand The DB command

elasticsearch\Connection close()

close() public method Closes the currently active DB connection. It does nothing if the connection is already closed. public void close ( )

elasticsearch\Connection $queryBuilder

$queryBuilder public read-only property public yii\elasticsearch\QueryBuilder getQueryBuilder ( )

elasticsearch\Connection $nodes

$nodes public property The elasticsearch cluster nodes to connect to. This is populated with the result of a cluster nodes request when $autodetectCluster is true. Additional special options: auth: overrides $auth property. For example: [ 'http_address' => 'inet[/127.0.0.1:9200]', 'auth' => ['username' => 'yiiuser', 'password' => 'yiipw'], // Overrides the `auth` property of the class with specific login and password //'auth' => ['username' => 'yiiuser', 'password' =&g

elasticsearch\Connection $nodeInfo

$nodeInfo public read-only property public void getNodeInfo ( )

elasticsearch\Connection $isActive

$isActive public read-only property Whether the DB connection is established public boolean getIsActive ( )

elasticsearch\Connection $driverName

$driverName public read-only property Name of the DB driver public string getDriverName ( )

elasticsearch\Connection $defaultProtocol

$defaultProtocol public property (available since version 2.0.5) Default protocol to connect to nodes public string $defaultProtocol = 'http'

elasticsearch\Connection $dataTimeout

$dataTimeout public property Timeout to use when reading the response from an elasticsearch node. This value will be used to configure the curl CURLOPT_TIMEOUT option. If not set, no explicit timeout will be set for curl. public float $dataTimeout = null