Ejemplo n.º 1
0
 /**
  * Return the document object for this hit
  *
  * @return Zend_Search_Lucene_Document
  */
 public function getDocument()
 {
     if (!$this->_document instanceof Zend_Search_Lucene_Document) {
         $this->_document = $this->_index->getDocument($this->id);
     }
     return $this->_document;
 }
Ejemplo n.º 2
0
 /**
  * Returns a Zend_Search_Lucene_Document object for the document
  * number $id in this index.
  *
  * @param integer|Zend_Search_Lucene_Search_QueryHit $id
  * @return Zend_Search_Lucene_Document
  */
 public function getDocument($id)
 {
     return $this->_index->getDocument($id);
 }