SolrDocument::addField
PHP function
Edit on GitHub ✎
(PECL solr >= 0.9.2)
Adds a field to the document
Description
SolrDocument::addField(string $fieldName, string $fieldValue): bool
This method adds a field to the SolrDocument instance.
Parameters
fieldNameThe name of the field
fieldValueThe value of the field.
Return Values
Success