function SearchIndexInterface::updateWordWeights
Same name in other branches
- 8.9.x core/modules/search/src/SearchIndexInterface.php \Drupal\search\SearchIndexInterface::updateWordWeights()
- 10 core/modules/search/src/SearchIndexInterface.php \Drupal\search\SearchIndexInterface::updateWordWeights()
- 11.x 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.
1 method overrides SearchIndexInterface::updateWordWeights()
- SearchIndex::updateWordWeights in core/
modules/ search/ src/ SearchIndex.php - Updates the {search_total} database table.
File
-
core/
modules/ search/ src/ SearchIndexInterface.php, line 97
Class
- SearchIndexInterface
- Provides search index management functions.
Namespace
Drupal\searchCode
public function updateWordWeights(array $words);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.