function search_post_update_reindex_after_diacritics_rule_change
Same name in other branches
- 9 core/modules/search/search.post_update.php \search_post_update_reindex_after_diacritics_rule_change()
Mark everything for reindexing after diacritics removal rule change.
File
-
core/
modules/ search/ search.post_update.php, line 29
Code
function search_post_update_reindex_after_diacritics_rule_change() {
$search_page_repository = \Drupal::service('search.search_page_repository');
foreach ($search_page_repository->getIndexableSearchPages() as $entity) {
$entity->getPlugin()
->markForReindex();
}
return t("Content has been marked for re-indexing for all active search pages. Searching will continue to work, but new content won't be indexed until all existing content has been re-indexed.");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.