SolrDocument::__get

(PECL solr >= 0.9.2) Access the field as a property public SolrDocumentField SolrDocument::__get ( string $fieldName ) Magic method for accessing the field as a property. Parameters: fieldName The name of the field. Returns: Returns a SolrDocumentField instance.

SolrDocument::fieldExists

(PECL solr >= 0.9.2) Checks if a field exists in the document public bool SolrDocument::fieldExists ( string $fieldName ) Checks if the requested field as a valid fieldname in the document. Parameters: fieldName The name of the field. Returns: Returns TRUE if the field is present and FALSE if it does not.

SolrDocument::__destruct

(PECL solr >= 0.9.2) Destructor public void SolrDocument::__destruct ( void ) Destructor for SolrDocument. Returns:

SolrDocument::deleteField

(PECL solr >= 0.9.2) Removes a field from the document public bool SolrDocument::deleteField ( string $fieldName ) Removes a field from the document. Parameters: fieldName Name of the field Returns: Returns TRUE on success or FALSE on failure.

SolrDocument::current

(PECL solr >= 0.9.2) Retrieves the current field public SolrDocumentField SolrDocument::current ( void ) Retrieves the current field Returns: Returns the field

SolrDocument::__construct

(PECL solr >= 0.9.2) Constructor public SolrDocument::__construct ( void ) Constructor for SolrDocument Returns:

SolrDocument::__clone

(PECL solr >= 0.9.2) Creates a copy of a SolrDocument object public void SolrDocument::__clone ( void ) Creates a copy of a SolrDocument object. Not to be called directly. Returns: None.

SolrDocument::clear

(PECL solr >= 0.9.2) Drops all the fields in the document public bool SolrDocument::clear ( void ) Resets the current object. Discards all the fields and resets the document boost to zero. Returns: Returns TRUE on success or FALSE on failure.

SolrDocument::addField

(PECL solr >= 0.9.2) Adds a field to the document public bool SolrDocument::addField ( string $fieldName, string $fieldValue ) This method adds a field to the SolrDocument instance. Parameters: fieldName The name of the field fieldValue The value of the field. Returns: Returns TRUE on success or FALSE on fai

SolrInputDocument::toArray

(PECL solr >= 0.9.2) Returns an array representation of the input document public array SolrInputDocument::toArray ( void ) Returns an array representation of the input document. Returns: Returns an array containing the fields. It returns FALSE on failure.