You are here

public function Field::getBoost in Search API 8

Retrieves the field's boost value.

Return value

float The boost set for this field. Defaults to 1.0 and is mostly only relevant for fulltext fields.

Overrides FieldInterface::getBoost

2 calls to Field::getBoost()
Field::getSettings in src/Item/Field.php
Retrieves all settings encapsulated in this field as an array.
Field::__toString in src/Item/Field.php
Implements the magic __toString() method to simplify debugging.

File

src/Item/Field.php, line 593

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function getBoost() {
  return $this->boost ?? 1.0;
}