public function TextToken::__construct in Search API 8
Constructs a TextToken object.
Parameters
string $text: The text value of the token.
float $boost: (optional) The boost for the token.
File
- src/
Plugin/ search_api/ data_type/ value/ TextToken.php, line 34
Class
- TextToken
- Represents a single text token contained in a fulltext field's value.
Namespace
Drupal\search_api\Plugin\search_api\data_type\valueCode
public function __construct($text, $boost = 1.0) {
$this->text = $text;
$this->boost = $boost;
}