elasticsearch\ActiveRecord primaryKeysByCondition()

primaryKeysByCondition() protected static method (available since version 2.0.4)

Performs a quick and highly efficient scroll/scan query to get the list of primary keys that satisfy the given condition. If condition is a list of primary keys (e.g.: ['_id' => ['1', '2', '3']]), the query is not performed for performance considerations.

See also:

protected static array primaryKeysByCondition ( $condition )
$condition array

Please refer to yii\elasticsearch\ActiveQuery::where() on how to specify this parameter

return array

Primary keys that correspond to given conditions

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

Please login to continue.