public function Field::setBoost in Search API 8
Sets the field's boost value.
Parameters
float $boost: The new boost value.
Return value
$this
Overrides FieldInterface::setBoost
File
- src/
Item/ Field.php, line 600
Class
- Field
- Represents a field on a search item that can be indexed.
Namespace
Drupal\search_api\ItemCode
public function setBoost($boost) {
$this->boost = (double) $boost;
return $this;
}