Individuals wikis are set up to search certain namespaces by default via the config variable $wgNamespacesToBeSearchedDefault
Make sure that MediaSearch respects this
Individuals wikis are set up to search certain namespaces by default via the config variable $wgNamespacesToBeSearchedDefault
Make sure that MediaSearch respects this
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
wgNamespacesToBeSearchDefault for custom namespace resubmission | mediawiki/extensions/MediaSearch | master | +46 -28 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Seddon | T278984 [M] [SPIKE] Investigate how easy/hard it is to make MediaSearch usable on other wikis | |||
Resolved | CBogen | T284204 [EPIC] Experiment with making MediaSearch usable on non-commons Wikis | |||
Resolved | Seddon | T284209 [M] Provide default selected namespace function for MediaSearch namespace filter |
Change 743989 had a related patch set uploaded (by Seddon; author: Seddon):
[mediawiki/extensions/MediaSearch@master] wgNamespacesToBeSearchDefault for custom namespace
Ok this has made obvious an issue I wasn't aware of. Normally when you do a search on a wiki it searches a certain set of namespaces by default - e.g. when you do a search via Special:Search on commons it searches in File, Help, Category, Creator, Institution and Main
MediaSearch doesn't do this. In the "categories and pages" tab it searches all non-File namespaces.
In the patch for this ticket when you're in the "Categories and pages" tab you can click "Namespaces" and see a "custom" option containing a list of checkboxes, with all the default-namespaces-for-this-wiki checked
This is still rather different from what happens for Special:Search, and I wonder do we need to do reconsider how the namespaces selector works. @Sneha (and also @mwilliams seeing as you worked on this before) - what do you think?
@mwilliams default namespaces are set for individual wikis ... don't know the history, but I guess for commons at least the community actively wanted File, Help, Category, Creator, Institution and Main to be searched by default
@mwilliams: so the "default" namespaces prioritises search of more frequented namespaces and deprioritise search of niche, more technical or even overwhelming namespaces that might crowd out results without loosing the ability to search those namespaces altogether.
Following a conversation, for this task as it stands, the option to include files will be kept.
To keep changes to a minimum, there will no additional changes on language or experience however, a separate task will be created to define improvements to the user experience to be considered for the future.
Change 743989 merged by jenkins-bot:
[mediawiki/extensions/MediaSearch@master] wgNamespacesToBeSearchDefault for custom namespace resubmission