public function ApacheSolrDocument::clear in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 Apache_Solr_Document.php \ApacheSolrDocument::clear()
- 7 Apache_Solr_Document.php \ApacheSolrDocument::clear()
Clear all boosts and fields from this document
File
- ./
Apache_Solr_Document.php, line 101
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 clear() {
$this->_documentBoost = FALSE;
$this->_fields = array();
$this->_fieldBoosts = array();
}