Page MenuHomePhabricator

Add all CirrusSearch filters to Global Search
Open, MediumPublic

Description

It has been confirmed to me that the CloudElastic service supports all the same filtering options that CirrusSearch does. We should add all applicable options to the Global Search UI. Ideally, we can also make the "Query" field act the same as the on-wiki search, whereby you can use filters like intitle:foo. This way, one can easily re-use a local query in their global searches.

Requested at https://meta.wikimedia.org/wiki/Special:Permalink/25428347#Help_with_Global-Search_Tool

Related resources:

Event Timeline

Reedy renamed this task from Add all CirrusSearch fitlers to Global Search to Add all CirrusSearch filters to Global Search.Aug 16 2023, 9:01 PM

As a completely hacky way to implement this, you could make cirrus do the query building. This wouldn't really be a supported way of doing things, it's utilizing cirrus debug endpoints, but it would plausibly work. It works by adding &cirrusDumpQuery to any search request (api or web).

I wouldn't suggest trying to recreate all the keywords cirrus creates externally, it would be tedious to try and keep both of them aligned. It might be nice if you could reference the cirrus code, but I'm afraid it's all tied up inside the mediawiki extension and would probably require a full mediawiki installation, at which point this relatively simple tool would probably get unwieldy.

https://en.wikipedia.org/w/index.php?search=intitle%3A%2Fsearch%2F&title=Special%3ASearch&profile=default&fulltext=1&cirrusDumpQuery

There are also some search filters that require querying other databases that wouldn't be portable between wikis. deepcat would probably be the main one, also any of the special wikibase queries.