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

Public Member Functions

 __get ($offset)
 Proxy method for getFieldValue(), provides more convenient access to the string value of a field.
 
 addField (Zend_Search_Lucene_Field $field)
 Add a field object to this document.
 
 getFieldNames ()
 Return an array with the names of the fields in this document.
 
 getField ($fieldName)
 Returns Zend_Search_Lucene_Field object for a named field in this document.
 
 getFieldValue ($fieldName)
 Returns the string value of a named field in this document.
 
 getFieldUtf8Value ($fieldName)
 Returns the string value of a named field in UTF-8 encoding.
 

Public Attributes

 $boost = 1.0
 

Protected Attributes

 $_fields = array()
 

Member Function Documentation

__get (   $offset)

Proxy method for getFieldValue(), provides more convenient access to the string value of a field.

Parameters
string$offset
Returns
string
addField ( Zend_Search_Lucene_Field  $field)

Add a field object to this document.

Parameters
Zend_Search_Lucene_Field$field
Returns
Zend_Search_Lucene_Document
getField (   $fieldName)

Returns Zend_Search_Lucene_Field object for a named field in this document.

Parameters
string$fieldName
Returns
Zend_Search_Lucene_Field
getFieldNames ( )

Return an array with the names of the fields in this document.

Returns
array
getFieldUtf8Value (   $fieldName)

Returns the string value of a named field in UTF-8 encoding.

See Also
__get()
Returns
string
getFieldValue (   $fieldName)

Returns the string value of a named field in this document.

See Also
__get()
Returns
string

Member Data Documentation

$_fields = array()
protected
$boost = 1.0