SolrDocument::addField
(PECL solr >= 0.9.2)
SolrDocument::addField — Adds a field to the document
说明
This method adds a field to the SolrDocument instance.
参数
fieldName-
The name of the field
fieldValue-
The value of the field.
(PECL solr >= 0.9.2)
SolrDocument::addField — Adds a field to the document
This method adds a field to the SolrDocument instance.
fieldNameThe name of the field
fieldValueThe value of the field.