elasticsearch\Query search()

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:

return array

The query results.

doc_Yii
2016-10-30 17:02:09
Comments
Leave a Comment

Please login to continue.