You are here

public function Apache_Solr_Document::__unset in Apache Solr Search 5

Magic unset for field values. Do no call directly. Allows usage:

<code> unset($document->some_field); </code>

Parameters

string $key:

File

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

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 __unset($key) {
  unset($this->_fields[$key]);
}