You are here

public function SearchApiSolrDocument::getFieldBoost in Search API Solr 7

Gets the currently set field boost for a document field.

Parameters

string $key: The name of the field.

Return value

float|false The currently set field boost, or FALSE if none was set.

3 calls to SearchApiSolrDocument::getFieldBoost()
SearchApiSolrDocument::addField in includes/document.inc
Adds a value to a multi-valued field
SearchApiSolrDocument::getField in includes/document.inc
Gets information about a field stored in Solr.
SearchApiSolrDocument::toXml in includes/document.inc
Create an XML fragment from this document.

File

includes/document.inc, line 248

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 getFieldBoost($key) {
  return isset($this->fieldBoosts[$key]) ? $this->fieldBoosts[$key] : FALSE;
}