Last modified: 2013-10-23 18:16:57 UTC
In MW 1.18 additional hooks have been added to enhance the Search profiling and especially creating your own profile works quite well but somehow it is nowhere to find the possibility the predetermine which profile to use as default. Since 1.18 the standard search always assumes to use profile=advanced which makes having additional profiles nice but not really convenient as the user has to change profiles manually (neither the user preference nor the LocalSettings have a possibility to default a specific profile). Our question is did we miss the documentation which explains how to set a default profile or is just by standard that the search uses profile=advanced as default profile? I can guess, people will say that this is the intended behaviour and not an error but to assume that the standard search profile should always be profile=advanced is a bit short sighted now that we have such nice hooks. [1] SpecialSearchProfiles, SpecialSearchProfileForm
We came across SpecialSearch.php (MW 1.18) line 104 which says: >>> if ( $profile === null) { $this->profile = 'advanced'; >>> Instead of assuming option 'advanced' where $profile is empty, it certainly would be more convenient to check for a global variable, use a hook or just have a user option to decided which profile to be used as default.
*** Bug 32705 has been marked as a duplicate of this bug. ***
CC'ing Nikerabbit since i believe he was involved in adding the SpecialSearchProfileForm hook.
It's already fixed on trunk that it defaults to "default" profile instead of advanced.