You are here

public function TextToken::setBoost in Search API 8

Sets the boost for this token.

Parameters

float $boost: The new boost for this token.

Return value

$this

Overrides TextTokenInterface::setBoost

File

src/Plugin/search_api/data_type/value/TextToken.php, line 64

Class

TextToken
Represents a single text token contained in a fulltext field's value.

Namespace

Drupal\search_api\Plugin\search_api\data_type\value

Code

public function setBoost($boost) {
  $this->boost = $boost;
  return $this;
}