Setup
- MediaWiki | 1.29.2 (3869ac0) 08:59, 15 November 2017
- PHP | 5.6.30-0+deb8u1 (apache2handler)
- MariaDB | 10.0.33-MariaDB-1~jessie
- Semantic MediaWiki | 3.0.0-alpha (e48a508) 01:18, 15 November 2017
Issue
Semantic MediaWiki standardly includes the "Concept" and "Property" namespaces as namespaces to be searched by default (NamespaceManager.php). There are however cases where you would like to remove these two namespaces from the to be searched by default array. However, even though I added the following setting after the inclusion of Semantic MediaWiki
$wgNamespacesToBeSearchedDefault = [ NS_MAIN => true, ];
the standard search is still also enabled for namespaces "Concept" and "Property" for anonymous users. This setting is however respected for logged in users.
Originally reported for Semantic MediaWiki on GitHub.
Example
Use the "advanced" profile on special page "Search" (public example)