Retrieves a field by name

# SolrDocument::getField

(PECL solr >= 0.9.2)

SolrDocument::getField — Retrieves 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.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open