You are here

public function ApacheSolrDocument::getFieldBoost in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 Apache_Solr_Document.php \ApacheSolrDocument::getFieldBoost()
  2. 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

public function getFieldBoost($key) {
  return isset($this->_fieldBoosts[$key]) ? $this->_fieldBoosts[$key] : FALSE;
}