Page MenuHomePhabricator

Decrease amount of nonsensical Special:MediaSearch autocomplete suggestions
Closed, DuplicatePublic

Description

The autocomplete suggestions are currently based on wikidata terms (labels or alias) where the beginning matches the search string.
This includes suggestions like "Caterpillar-induced plant volatiles remain a reliable signal for foraging wasps during dual attack with a plant pathogen or non-host insect herbivore." (Q42004108) and an awful lot of others.

Those kind of absurdly-specific suggestions should not show up, especially since those are not terms that will ever be associated with an image.

A few possible ideas to mitigate these:

  • filter out suggestions that'll yield no results
  • filter out "instanceof:scholarly article" items
  • only autocomplete the current word

Event Timeline

This comment was removed by CBogen.

Change 598495 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Only suggest terms up to the word being typed

https://gerrit.wikimedia.org/r/598495

Ah, I hadn't noticed that one - yes it probably should.

Change 598495 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Only suggest terms up to the word being typed

https://gerrit.wikimedia.org/r/598495