Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Search_Lucene_Search_QueryHit Class Reference

Public Member Functions

 __construct (Zend_Search_Lucene_Interface $index)
 Constructor - pass object handle of Zend_Search_Lucene_Interface index that produced the hit so the document can be retrieved easily from the hit.
 
 __get ($offset)
 Convenience function for getting fields from the document associated with this hit.
 
 getDocument ()
 Return the document object for this hit.
 
 getIndex ()
 Return the index object for this hit.
 

Public Attributes

 $id
 
 $score
 

Protected Attributes

 $_index = null
 
 $_document = null
 

Constructor & Destructor Documentation

__construct ( Zend_Search_Lucene_Interface  $index)

Constructor - pass object handle of Zend_Search_Lucene_Interface index that produced the hit so the document can be retrieved easily from the hit.

Parameters
Zend_Search_Lucene_Interface$index

Member Function Documentation

__get (   $offset)

Convenience function for getting fields from the document associated with this hit.

Parameters
string$offset
Returns
string
getDocument ( )

Return the document object for this hit.

Returns
Zend_Search_Lucene_Document
getIndex ( )

Return the index object for this hit.

Returns
Zend_Search_Lucene_Interface

Member Data Documentation

$_document = null
protected
$_index = null
protected
$id
$score