public function search($query, $limit = 10, $embed = '', $query_fields = '', $filter = '', $language = 'en')
    {
        $params = array('query' => $query, 'limit' => $limit, 'embed' => $embed,
                        'query_fields' => $query_fields, 'filter' => $filter, 'language' => $language);
        $this->detail = $this->client->get('search', $params);

        return $this->detail;
    }
public function search($query, $limit = 10, $embed = '', $query_fields = '', $filter = '', $language = 'en')
    {
        $params = array('query' => $query, 'limit' => $limit, 'embed' => $embed,
                        'query_fields' => $query_fields, 'filter' => $filter, 'language' => $language);
        $this->detail = $this->client->get('search', $params);

        return $this->detail;
    }
public function search ( $ query , $ limit = 10 , $ embed = '' , $ query_fields = '' , $ filter = '' , $ language = 'en' ) { $ params = array ( 'query' => $ query , 'limit' => $ limit , 'embed' => $ embed , 'query_fields' => $ query_fields , 'filter' => $ filter , 'language' => $ language ) ; $ this -> detail = $ this -> client -> get ( 'search' , $ params ) ; return $ this -> detail ; }
The nice thing about search is that once you've loaded some results, you can use the normal pagination functions
without having to do anything special because search results are just another collection.

@param $query
@param int $limit                    How many search results to return at a time
@param string $embed                 Should the full item be embedded in the results or just a reference?
@param string $query_fields
@param string $filter
@param string $language
@return array|bool|float|int|string
The nice thing about search is that once you ve loaded some results you can use the normal pagination functions without having to do anything special because search results are just another collection .