public function search($query, $field_list = array(), $limit = 100, $page = 0, $resources = array()) {
    $params = array(
      'field_list'  => implode(',', $field_list),
      'limit'       => $limit,
      'page'        => $page,
      'query'       => $query,
      'resources'   => implode(',', $resources)
    );

    return $this->get_objects('search', $params);
  }
public function search($query, $field_list = array(), $limit = 100, $page = 0, $resources = array()) {
    $params = array(
      'field_list'  => implode(',', $field_list),
      'limit'       => $limit,
      'page'        => $page,
      'query'       => $query,
      'resources'   => implode(',', $resources)
    );

    return $this->get_objects('search', $params);
  }
public function search ( $ query , $ field_list = array ( ) , $ limit = 100 , $ page = 0 , $ resources = array ( ) ) { $ params = array ( 'field_list' => implode ( ',' , $ field_list ) , 'limit' => $ limit , 'page' => $ page , 'query' => $ query , 'resources' => implode ( ',' , $ resources ) ) ; return $ this -> get_objects ( 'search' , $ params ) ; }
Perform a search with given keyword

@param  $query      string  keyword to search
@param  $field_list array   list of fields to response
@param  $limit      integer limit result count by given limit
@param  $page       integer page number of search results
@param  $resources  array   list of resources to filter results

@return array response
Perform a search with given keyword