public function ApacheSolrDocument::getFieldBoost in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 Apache_Solr_Document.php \ApacheSolrDocument::getFieldBoost()
- 7 Apache_Solr_Document.php \ApacheSolrDocument::getFieldBoost()
Get the currently set field boost for a document field
Parameters
string $key:
Return value
float currently set field boost, false if one is not set
2 calls to ApacheSolrDocument::getFieldBoost()
- ApacheSolrDocument::addField in ./
Apache_Solr_Document.php - Add a value to a multi-valued field
- ApacheSolrDocument::getField in ./
Apache_Solr_Document.php - Get field information
File
- ./
Apache_Solr_Document.php, line 233
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> ... $document->title = 'Something'; echo…
Code
public function getFieldBoost($key) {
return isset($this->_fieldBoosts[$key]) ? $this->_fieldBoosts[$key] : FALSE;
}