/**
  * Return total number of hits for search (usually for ajax)
  */
 public function hitsAction()
 {
     // create an identifier for this search
     $id = $this->helper->getQueryID();
     // see if one exists in session already
     $total = $this->request->getSessionData($id);
     // nope
     if ($total == null) {
         // so do a search (just the hit count)
         // and cache the hit total
         $total = $this->engine->getHits($this->query);
         $this->request->setSessionData($id, (string) $total);
     }
     // format it
     $total = Parser::number_format($total);
     // and tell the browser too
     $this->response->setVariable('hits', $total);
     // view template
     $this->response->setView('search/hits.xsl');
     return $this->response;
 }