public function Item::setBoost in Search API 8
Sets the boost value of this item.
Parameters
float $boost: The boost value to set.
Return value
$this
Overrides ItemInterface::setBoost
File
- src/
Item/ Item.php, line 371
Class
- Item
- Provides a default implementation for a search item.
Namespace
Drupal\search_api\ItemCode
public function setBoost($boost) {
$this->boost = $boost;
return $this;
}