From b5977d65e97f6fcfccddefedf619de4902e45d31 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 26 Sep 2018 18:02:05 -0400 Subject: [PATCH] Include WB items in regular search results by dflt getting ready for removing search autosuggester regular search should still include wb item pages --- cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb index 8767afd0b..e14dbea78 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb @@ -40,8 +40,8 @@ call_user_func( function() { // Make sure we use the same keys on repo and clients, so we can share cached objects. $wgWBRepoSettings['sharedCacheKeyPrefix'] = $wgDBname . ':WBL/' . rawurlencode( WBL_VERSION ); - // Tell MediaWiki to search the item namespace - // $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true; + // Include Wikibase items in the regular search result by default + $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true; // the special group includes all the sites in the specialSiteLinkGroups, // grouped together in a 'Pages linked to other sites' section. -- 2.43.2