]> git.openstreetmap.org Git - chef.git/commitdiff
Include WB items in regular search results by dflt
authorYuri Astrakhan <YuriAstrakhan@gmail.com>
Wed, 26 Sep 2018 22:02:05 +0000 (18:02 -0400)
committerYuri Astrakhan <YuriAstrakhan@gmail.com>
Wed, 26 Sep 2018 22:02:05 +0000 (18:02 -0400)
getting ready for removing search autosuggester
regular search should still include wb item pages

cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb

index 8767afd0bac89ce12e4699b0392628f3befa5921..e14dbea783a69217eb018901b6c284731f1b1989 100644 (file)
@@ -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.