/**
  * Used during indexing to retrieve data for a single page in JSON format.
  */
 public function getPage()
 {
     $pageId = $this->getVal('id');
     if (!empty($pageId)) {
         $page = $this->wikiaSearchIndexer->getPage($pageId);
         $this->response->setData($page);
     }
     // force output format as there's no template file (BugId:18831)
     $this->getResponse()->setFormat('json');
 }