/**
  * Past straight to results, display and encode the query.
  */
 public function getSearchResults()
 {
     $query = $this->getSearchQuery();
     $search = new DocumentationSearch();
     $search->setQuery($query);
     $search->setVersions($this->getSearchedVersions());
     $search->setModules($this->getSearchedEntities());
     $search->setOutputController($this->owner);
     return $search->renderResults();
 }
 /**
  * Past straight to results, display and encode the query
  */
 function results($data, $form = false)
 {
     $query = isset($_REQUEST['Search']) ? $_REQUEST['Search'] : false;
     if (!$query) {
         return $this->httpError('404');
     }
     $search = new DocumentationSearch();
     $search->setQuery($query);
     $search->setOutputController($this);
     return $search->renderResults();
 }