search() public method
Executes the query and returns the complete search result including e.g. hits, facets, totalCount.
public array search ( $db = null, $options = [] )$db yii\elasticsearch\Connection
The database connection used to execute the query. If this parameter is not given, the elasticsearch application component will be used. $options array
The options given with this query. Possible options are: routing search_type return array
The query results.