Should be possible to customize the search profiles.


Author: conrad.irwin

It would be nice if the namespaces available to be searched could be customised easily, either by the server-folk or the wiki's Sysops.

I envisage a $wgSearchNamespaces to deprecate $wgNamespacesToBeSearchedDefault and $wgNamespacesToBeSearchedHelp in favour of a more flexible configuration

(A Wiktionarian suggested that they'd like:

$wgSearchNamespaces = array(

'dictionary' => array( NS_MAIN ), 
'thesaurus'  => array( 110 ),
'appendices' => array( 100, 102, 106 ),
'help-project' => array( NS_HELP, NS_PROJECT ),
'everything' => SEARCH_ALL,
'custom'     => SEARCH_CUSTOM


Obviously, being able to remove the Multimedia option is useful for any site that uses commons for all its media; and adding options is beneficial for any site with custom namespaces)

An alternative would be a set-up like [[MediaWiki:Sidebar]] where the message can be read and parsed (and cached!) - would require less precious sysadmin time.

This might be possible using an extension to Hook into 'SpecialSearchProfiles', but it would be cleaner to fix SpecialSearch::getSearchProfiles() directly (particularly for a configuration variable).

Version: unspecified
Severity: normal
See Also:

bzimport added a project: MediaWiki-Search.Via ConduitNov 21 2014, 11:02 PM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz22774.
bzimport created this task.Via LegacyMar 8 2010, 10:33 PM
demon added a comment.Via ConduitJan 5 2014, 4:46 AM

Absolutely. This whole thing needs a facelift.

Nemo_bis added a comment.Via ConduitMay 27 2014, 7:05 PM

More important now due to

demon removed a subscriber: demon.Via Bulk EditAug 19 2015, 4:41 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptVia HeraldAug 19 2015, 4:41 PM
Restricted Application added a project: Discovery. · View Herald Transcript

Add Comment