You are here

public function ItemInterface::setScore in Search API 8

Sets the score of the item.

Parameters

float $score: The score of the item.

Return value

$this

1 method overrides ItemInterface::setScore()
Item::setScore in src/Item/Item.php
Sets the score of the item.

File

src/Item/ItemInterface.php, line 192

Class

ItemInterface
Represents a search item being indexed or returned as a search result.

Namespace

Drupal\search_api\Item

Code

public function setScore($score);