SolrDocument::offsetGet

(PECL solr >= 0.9.2) Retrieves a field public SolrDocumentField SolrDocument::offsetGet ( string $fieldName ) This is used to retrieve the field when the object is treated as an array. Parameters: fieldName The name of the field. Returns: Returns a SolrDocumentField object.

SolrDocument::offsetExists

(PECL solr >= 0.9.2) Checks if a particular field exists public bool SolrDocument::offsetExists ( string $fieldName ) Checks if a particular field exists. This is used when the object is treated as an array. Parameters: fieldName The name of the field. Returns: Returns TRUE on success or FALSE on failure.

SolrDocument::next

(PECL solr >= 0.9.2) Moves the internal pointer to the next field public void SolrDocument::next ( void ) Moves the internal pointer to the next field. Returns: This method has no return value.

SolrDocument::merge

(PECL solr >= 0.9.2) Merges source to the current SolrDocument public bool SolrDocument::merge ( SolrDocument $sourceDoc [, bool $overwrite = true ] ) Merges source to the current SolrDocument. Parameters: sourceDoc The source document. overwrite If this is TRUE then fields with the same name in the destination document will be over

SolrDocument::key

(PECL solr >= 0.9.2) Retrieves the current key public string SolrDocument::key ( void ) Retrieves the current key. Returns: Returns the current key.

SolrDocument::__isset

(PECL solr >= 0.9.2) Checks if a field exists public bool SolrDocument::__isset ( string $fieldName ) Checks if a field exists Parameters: fieldName Name of the field. Returns: Returns TRUE on success or FALSE on failure.

SolrDocument::getInputDocument

(PECL solr >= 0.9.2) Returns a SolrInputDocument equivalent of the object public SolrInputDocument SolrDocument::getInputDocument ( void ) Returns a SolrInputDocument equivalent of the object. This is useful if one wishes to resubmit/update a document retrieved from a query. Returns: Returns a SolrInputDocument on success and NULL on failure.

SolrDocument::getFieldNames

(PECL solr >= 0.9.2) Returns an array of fields names in the document public array SolrDocument::getFieldNames ( void ) Returns an array of fields names in the document. Returns: Returns an array containing the names of the fields in this document.

SolrDocument::getFieldCount

(PECL solr >= 0.9.2) Returns the number of fields in this document public int SolrDocument::getFieldCount ( void ) Returns the number of fields in this document. Multi-value fields are only counted once. Returns: Returns an integer on success and FALSE on failure.

SolrDocument::getField

(PECL solr >= 0.9.2) Retrieves a field by name public SolrDocumentField SolrDocument::getField ( string $fieldName ) Retrieves a field by name. Parameters: fieldName Name of the field. Returns: Returns a SolrDocumentField on success and FALSE on failure.