/** * Return the document object for this hit * * @return \Zend\Search\Lucene\Document */ public function getDocument() { if (!$this->_document instanceof Document) { $this->_document = $this->_index->getDocument($this->id); } return $this->_document; }