elasticsearch\BatchQueryResult $query

$query public property The query object associated with this batch query. Do not modify this property directly unless after reset() is called explicitly. public yii\elasticsearch\Query $query = null

elasticsearch\BatchQueryResult $each

$each public property Whether to return a single row during each iteration. If false, a whole batch of rows will be returned in each iteration. public boolean $each = false

elasticsearch\BatchQueryResult $db

$db public property The DB connection to be used when performing batch query. If null, the elasticsearch application component will be used. public yii\elasticsearch\Connection $db = null

elasticsearch\ActiveRecord updateInternal()

updateInternal() protected method See also update(). protected integer|false updateInternal ( $attributes = null, $options = [] )$attributes array Attributes to update $options array Options given in this parameter are passed to elasticsearch as request URI parameters. See update() for details. return integer|false The number of rows affected, or false if beforeSave() stops the updating process. throws yii\db\StaleObjectException if optimistic locking is enabled and the data bei

elasticsearch\ActiveRecord updateAllCounters()

updateAllCounters() public static method Updates all matching records using the provided counter changes and conditions. For example, to add 1 to age of all customers whose status is 2, Customer::updateAllCounters(['age' => 1], ['status' => 2]); See also [[yii\elasticsearch\ActiveRecord::primaryKeysByCondition()]]. public static integer updateAllCounters ( $counters, $condition = [] )$counters array The counters to be updated (attribute name => increment value). Use negative va

elasticsearch\ActiveRecord updateAll()

updateAll() public static method Updates all records whos primary keys are given. For example, to change the status to be 1 for all customers whose status is 2: Customer::updateAll(['status' => 1], ['status' => 2]); See also [[yii\elasticsearch\ActiveRecord::primaryKeysByCondition()]]. public static integer updateAll ( $attributes, $condition = [] )$attributes array Attribute values (name-value pairs) to be saved into the table $condition array The conditions that will be passed

elasticsearch\ActiveRecord update()

update() public method Saves the changes to this active record into the associated database table. This method performs the following steps in order: call beforeValidate() when $runValidation is true. If beforeValidate() returns false, the rest of the steps will be skipped; call afterValidate() when $runValidation is true. If validation failed, the rest of the steps will be skipped; call beforeSave(). If beforeSave() returns false, the rest of the steps will be skipped; save the record into

elasticsearch\ActiveRecord unlinkAll()

unlinkAll() public method Destroys the relationship in current model. This method is not supported by elasticsearch. public void unlinkAll ( $name, $delete = false )$name $delete

elasticsearch\ActiveRecord type()

type() public static method public static string type ( )return string The name of the type of this record.

elasticsearch\ActiveRecord setPrimaryKey()

setPrimaryKey() public method Sets the primary key public void setPrimaryKey ( $value )$value mixed throws yii\base\InvalidCallException when record is not new