Page MenuHomePhabricator

Allow appending search "filters" to search terms
Closed, ResolvedPublic


Done: You can now add parameters such as searchfilter=insource:foo to the search inputbox - it will append that value to the user's search query. Full documentation at

Please add cirrus specific parameter to preload the search - inputbox

...(all availible cirrus parametes)

additional: in some cases the "hidden=" -Parameter for Cirrus-enhanced inputbox could be usefull

Event Timeline

EBernhardson renamed this task from Add Cirrus Parameters to InbutBox Search to Add Cirrus Parameters to InputBox Search.Oct 12 2016, 7:01 PM

+1. (There's a similar thread at where the editor is asking for the ability to add "incategory:foo", without having to resort to the "default=" parameter - which can confuse the end-users, and means they have to both avoid deleting it, and add a space afterwards before they can begin typing.)

I am interested in implementing something like this, but instead of hardcoding every possible CirrusSearch filter into the extension, allow freeform text to append to the search term where the filters could be defined. Such that you'd have searchfilters=incategory:Blah inlanguage: ja etc. This is both easier to implement and would mean we would not have to change the extension whenever CirrusSearch is also changed. Would this approach work for people?

Upon conferring with @Quiddity I think the best option is to not merge this task with T32404 as that task asks for something a lot more sophisticated than this task.

Change 357437 had a related patch set uploaded (by Harej; owner: Harej):
[mediawiki/extensions/InputBox@master] Allow appending searchfilters to terms

Change 357437 merged by jenkins-bot:
[mediawiki/extensions/InputBox@master] Allow appending searchfilters to terms

matmarex renamed this task from Add Cirrus Parameters to InputBox Search to Allow appending search "filters" to search terms.Jun 19 2017, 2:41 PM
matmarex closed this task as Resolved.
matmarex assigned this task to Harej.
matmarex removed a project: Patch-For-Review.