Last modified: 2014-10-17 21:35:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24774, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22774 - Should be possible to customize the search profiles.
Should be possible to customize the search profiles.
Status: NEW
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-08 22:33 UTC by Conrad Irwin
Modified: 2014-10-17 21:35 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Conrad Irwin 2010-03-08 22:33:45 UTC
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).
Comment 1 Chad H. 2014-01-05 04:46:41 UTC
Absolutely. This whole thing needs a facelift.
Comment 2 Nemo 2014-05-27 19:05:05 UTC
More important now due to https://gerrit.wikimedia.org/r/132965

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links