You are here

public function ApacheSolrDocument::__unset in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 Apache_Solr_Document.php \ApacheSolrDocument::__unset()
  2. 7 Apache_Solr_Document.php \ApacheSolrDocument::__unset()

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

@code unset($document->some_field);

Parameters

string $key:

File

./Apache_Solr_Document.php, line 342

Class

ApacheSolrDocument
Holds Key / Value pairs that represent a Solr Document along with any associated boost values. Field values can be accessed by direct dereferencing such as:

Code

public function __unset($key) {
  unset($this->_fields[$key]);
  unset($this->_fieldBoosts[$key]);
}