array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'solrdocument.offsetset.php', 1 => 'SolrDocument::offsetSet', 2 => 'Adds a field to the document', ), 'up' => array ( 0 => 'class.solrdocument.php', 1 => 'SolrDocument', ), 'prev' => array ( 0 => 'solrdocument.offsetget.php', 1 => 'SolrDocument::offsetGet', ), 'next' => array ( 0 => 'solrdocument.offsetunset.php', 1 => 'SolrDocument::offsetUnset', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrdocument/offsetset.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL solr >= 0.9.2)
SolrDocument::offsetSet — Adds a field to the document
Used when the object is treated as an array to add a field to the document.
fieldNameThe name of the field.
fieldValueThe value for this field.