SolrDocument::offsetSet

(PECL solr >= 0.9.2)

SolrDocument::offsetSetAdds a field to the document

说锟斤拷

public SolrDocument::offsetSet ( string $fieldName , string $fieldValue ) : void

Used when the object is treated as an array to add a field to the document.

锟斤拷锟斤拷

fieldName

The name of the field.

fieldValue

The value for this field.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷