Page MenuHomePhabricator

Allow searching for a particular statement without a particular qualifier
Closed, ResolvedPublic


For example, a user should be able to search for all images that depict a cat, but that don't specify the colour of the cat

Solution is to use a prefix query instead of an exact match query for haswbstatement if there's a * at the end of a haswbstatement keyword

Then the user could find all images depicting a cat but that don't have a colour for that cat like this haswbstatement:P180=Q146 -haswbstatement:P180=Q146[P462=*

Event Timeline

Change 467699 had a related patch set uploaded (by Cparle; owner: Cparle):
[mediawiki/extensions/Wikibase@master] Change haswbstatement to a prefix query

Change 467699 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Query syntax hint to allow haswbstatement be a prefix query

debt moved this task from needs triage to watching / waiting on the Discovery-Search board.
debt subscribed.

Moving this to watching, let Discovery-Search know if more assistance is needed. :)

Strictly speaking this ticket was for the backend part, which is merged, working and deployed - so I'm gonna close this