SolrDocument
SolrDocument::clear
SolrDocument
PHP Manual

# SolrDocument::addField

(PECL solr >= 0.9.2)

SolrDocument::addField — Adds 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.

### 返り値

成功した場合に `TRUE` を、失敗した場合に `FALSE` を返します。

SolrDocument
SolrDocument::clear
SolrDocument
PHP Manual