From: Yuri Astrakhan Date: Wed, 26 Sep 2018 22:02:05 +0000 (-0400) Subject: Include WB items in regular search results by dflt X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b5977d65e97f6fcfccddefedf619de4902e45d31?ds=sidebyside Include WB items in regular search results by dflt getting ready for removing search autosuggester regular search should still include wb item pages --- 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.