SolrDocument
PHP Manual

SolrDocument::addField

(PECL solr >= 0.9.2)

SolrDocument::addFieldAdds a field to the document.

説明

public bool SolrDocument::addField ( string $fieldName , string $fieldValue )

This method adds a field to the SolrDocument instance.

パラメータ

fieldName

The name of the field

fieldValue

The value of the field.

返り値

Returns TRUE on success and FALSE on failure.


SolrDocument
PHP Manual