\Zend_Search_Lucene_Search_QueryHit
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Search_QueryHit
{
- // members
- protected Zend_Search_Lucene_Interface $_index = NULL;
- protected Zend_Search_Lucene_Document $_document = NULL;
- public $id;
- public $score;
- // methods
- public void __construct()
- public string __get()
- public Zend_Search_Lucene_Document getDocument()
- public Zend_Search_Lucene_Interface getIndex()
Members
protected
- $_document
—
Zend_Search_Lucene_Document
Object handle of the document associated with this hit - $_index
—
Zend_Search_Lucene_Interface
Object handle of the index
public
- $id
—
integer
Number of the document in the index - $score
—
float
Score of the hit
Methods
public
- __construct() — 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() — 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