SolrDocument::getField

(PECL solr >= 0.9.2)

SolrDocument::getFieldRetrieves a field by name

Description

public SolrDocument::getField ( string $fieldName ) : SolrDocumentField

Retrieves a field by name.

Parameters

fieldName

Name of the field.

Return Values

Returns a SolrDocumentField on success and FALSE on failure.