예제 #1
0
 public function selectAction()
 {
     $engine = new Engine();
     $query = new Query();
     $query->addTerm('username', null, 'query', null, $this->request->getSessionData('username'));
     $results = $engine->searchRetrieve($query, 1, 500);
 }
 /**
  * Select previously saved records for inclusion in the reading list
  */
 public function selectAction()
 {
     $engine = new Engine();
     $query = $engine->getQuery($this->request);
     $username = $this->request->getSessionData('username');
     $query->addTerm('username', null, 'query', null, $username);
     $results = $engine->searchRetrieve($query, 1, 500);
     // echo '<pre>' . print_r($results) . '</pre>'; exit;
     $this->response->setVariable('results', $results);
     return $this->response;
 }