SolrDocument::offsetExists
PHP function
Edit on GitHub ✎
(PECL solr >= 0.9.2)
Checks if a particular field exists
Description
SolrDocument::offsetExists(string $fieldName): bool
Checks if a particular field exists. This is used when the object is treated as an array.
Parameters
fieldNameThe name of the field.
Return Values
Success