You are here

public function Apache_Solr_Document::__set in Apache Solr Search 5

Magic set for field values. Multi-valued fields should be set as arrays or instead use the setMultiValue(...) function which will automatically make sure the field is an array.

Parameters

string $key:

mixed $value:

File

SolrPhpClient/Apache/Solr/Document.php, line 65

Class

Apache_Solr_Document
Holds Key / Value pairs that represent a Solr Document. Field values can be accessed by direct dereferencing such as: <code> ... $document->title = 'Something'; echo $document->title; ... </code>

Code

public function __set($key, $value) {
  $this->_fields[$key] = $value;
}