public function SearchApiSolrDocument::clear in Search API Solr 7
Clears all boosts and fields from this document.
File
- includes/
document.inc, line 116
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 clear() {
$this->documentBoost = FALSE;
$this->fields = array();
$this->fieldBoosts = array();
$this->fieldUpdates = array();
$this->nestedObjects = array();
}