You are here

public function Item::setScore in Search API 8

Sets the score of the item.

Parameters

float $score: The score of the item.

Return value

$this

Overrides ItemInterface::setScore

File

src/Item/Item.php, line 356

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

public function setScore($score) {
  $this->score = $score;
  return $this;
}