column() public method
Executes the query and returns the first column of the result.
| public array column ( $field, $db = null ) | ||
|---|---|---|
| $field | string |
The field to query over |
| $db | yii\elasticsearch\Connection |
The database connection used to execute the query. If this parameter is not given, the |
| return | array |
The first column of the query result. An empty array is returned if the query results in nothing. |
Please login to continue.