SolrDocument::__unset

(PECL solr >= 0.9.2) Removes a field from the document public bool SolrDocument::__unset ( string $fieldName ) Removes a field from the document when the field is access as an object property. Parameters: fieldName The name of the field. Returns: Returns TRUE on success or FALSE on failure.

SolrDocument::unserialize

(PECL solr >= 0.9.2) Custom serialization of SolrDocument objects public void SolrDocument::unserialize ( string $serialized ) Custom serialization of SolrDocument objects Parameters: serialized An XML representation of the document. Returns: None.

SolrDocument::toArray

(PECL solr >= 0.9.2) Returns an array representation of the document public array SolrDocument::toArray ( void ) Returns an array representation of the document. Returns: Returns an array representation of the document. Examples: SolrDocument::toArray() example <?php $doc = new SolrDocument(); $doc->addField('i

SolrDocument::sort

(PECL solr >= 0.9.2) Sorts the fields in the document public bool SolrDocument::sort ( int $sortOrderBy [, int $sortDirection = SolrDocument::SORT_ASC ] ) The fields are rearranged according to the specified criteria and sort direction Fields can be sorted by boost values, field names and number of values. The sortOrderBy parameter must be one of : * SolrDocument::SORT_FIELD_NAME * SolrDocument::S

SolrDocument::__set

(PECL solr >= 0.9.2) Adds another field to the document public bool SolrDocument::__set ( string $fieldName, string $fieldValue ) Adds another field to the document. Used to set the fields as new properties. Parameters: fieldName Name of the field. fieldValue Field value. Returns: Returns TRUE on success or

SolrDocument::serialize

(PECL solr >= 0.9.2) Used for custom serialization public string SolrDocument::serialize ( void ) Used for custom serialization. Returns: Returns a string representing the serialized Solr document.

SolrDocument::rewind

(PECL solr >= 0.9.2) Resets the internal pointer to the beginning public void SolrDocument::rewind ( void ) Resets the internal pointer to the beginning. Returns: This method has no return value.

SolrDocument::reset

(PECL solr >= 0.9.2) This is an alias to SolrDocument::clear() public bool SolrDocument::reset ( void ) This is an alias to SolrDocument::clear() Returns: Returns TRUE on success or FALSE on failure.

SolrDocument::offsetUnset

(PECL solr >= 0.9.2) Removes a field public void SolrDocument::offsetUnset ( string $fieldName ) Removes a field from the document. Parameters: fieldName The name of the field. Returns: No return value.

SolrDocument::offsetSet

(PECL solr >= 0.9.2) Adds a field to the document public void SolrDocument::offsetSet ( string $fieldName, string $fieldValue ) Used when the object is treated as an array to add a field to the document. Parameters: fieldName The name of the field. fieldValue The value for this field. Returns: Returns TRUE