elasticsearch\ActiveRecord mget()

mget() public static method

Gets a list of records by its primary keys.

public static array mget ( array $primaryKeys, $options = [] )
$primaryKeys array

An array of primaryKey values

$options array

Options given in this parameter are passed to elasticsearch as request URI parameters.

Please refer to the elasticsearch documentation for more details on these options.

return array

The record instances, or empty array if nothing was found

doc_Yii
2016-10-30 17:01:25
Comments
Leave a Comment

Please login to continue.