public function SearchApiSolrDocument::__unset in Search API Solr 7
Magic unset for field values.
Do not call directly. Allows the following usage:
unset($document->some_field);
Parameters
string $key: The name of the field.
File
- includes/
document.inc, line 436
Class
- SearchApiSolrDocument
- 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]);
}