You are here

public function Item::getScore in Search API 8

Returns the score of the item.

Defaults to 1 if not previously set.

Return value

float The score of the item.

Overrides ItemInterface::getScore

1 call to Item::getScore()
Item::__toString in src/Item/Item.php
Implements the magic __toString() method to simplify debugging.

File

src/Item/Item.php, line 349

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

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