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

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 25 2020, 8:09 AM
CBogen added a subscriber: CBogen.May 25 2020, 2:18 PM

@matthiasmullie, should this be merged with T252891?

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

@matthiasmullie, should this be merged with T252891?

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