Page MenuHomePhabricator

Support file: local: search limiting in the Media dialog search results
Closed, DuplicatePublic

Description

Searching with Special:Search for file: local: "Wind clock" is supposed to filter out results from Commons, per https://www.mediawiki.org/wiki/Help:CirrusSearch#Prefix_and_namespace

It would sometimes be nice to do that in VisualEditor's Media dialog, too.

(Requested by a logged-out editor at https://www.mediawiki.org/wiki/Topic:Tq9oex9g7zf7ms9s )

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Search does support sending these kinds of special queries over the API. The reason this isn't working right now is because when you do a search, the query is being sent to both the local wiki and Commons, which undoes the effect of the local keyword. To make this work the underlying architecture would have to be rethought, I suspect.