- // TODO: max_id, lang, geocode
-
- $results = new JSONSearchResultsList($notice, $q, $this->rpp, $this->page, $this->since_id);
+ $this->notices = array();
+ $search_engine = $notice->getSearchEngine('notice');
+ $search_engine->set_sort_mode('chron');
+ $search_engine->limit(($this->page - 1) * $this->rpp, $this->rpp + 1);
+ if ($search_engine->query($this->query)) {
+ $cnt = $notice->find();
+ $this->notices = $notice->fetchAll();
+ }