You are here

public function SearchIndexInterface::updateWordWeights in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/SearchIndexInterface.php \Drupal\search\SearchIndexInterface::updateWordWeights()
  2. 9 core/modules/search/src/SearchIndexInterface.php \Drupal\search\SearchIndexInterface::updateWordWeights()

Updates the {search_total} database table.

Parameters

array $words: An array whose keys are words from self::index() whose total weights need to be updated.

Throws

\Drupal\search\Exception\SearchIndexException If there is an error updating the totals.

File

core/modules/search/src/SearchIndexInterface.php, line 97

Class

SearchIndexInterface
Provides search index management functions.

Namespace

Drupal\search

Code

public function updateWordWeights(array $words);