diff --git a/core/modules/search/migration_templates/d7_search_settings.yml b/core/modules/search/migration_templates/d7_search_settings.yml index ec272141a1f6c285da8d9b9439222aee1f4406bd..57db8b9456609efe0236b1d6558973ca33296ead 100644 --- a/core/modules/search/migration_templates/d7_search_settings.yml +++ b/core/modules/search/migration_templates/d7_search_settings.yml @@ -12,6 +12,7 @@ source: - search_cron_limit - search_tag_weights - search_and_or_limit + - search_default_module process: 'index/minimum_word_size': minimum_word_size 'index/overlap_cjk': overlap_cjk @@ -19,6 +20,13 @@ process: 'index/tag_weights': search_tag_weights and_or_limit: search_and_or_limit logging: 'constants/status' + default_page: + plugin: static_map + source: + - search_default_module + map: + node: node_search + user: user_search destination: plugin: config config_name: search.settings diff --git a/core/modules/search/src/Tests/Migrate/d7/MigrateSearchSettingsTest.php b/core/modules/search/src/Tests/Migrate/d7/MigrateSearchSettingsTest.php index 5adff4108a702def96b830ba8ec0e1bedb185062..ac0e4c0eae144dc272388808b1c6995715287488 100644 --- a/core/modules/search/src/Tests/Migrate/d7/MigrateSearchSettingsTest.php +++ b/core/modules/search/src/Tests/Migrate/d7/MigrateSearchSettingsTest.php @@ -31,6 +31,7 @@ protected function setUp() { */ public function testSearchSettings() { $config = $this->config('search.settings'); + $this->assertIdentical('node_search', $config->get('default_page')); $this->assertIdentical(4, $config->get('index.minimum_word_size')); $this->assertTrue($config->get('index.overlap_cjk')); $this->assertIdentical(100, $config->get('index.cron_limit'));