Page MenuHomePhabricator

Repeated patterns and <nowiki> output in search result descriptions
Open, Needs TriagePublicBUG REPORT


Steps to replicate the issue (include links if applicable):

What happens?:

I see these repeated patterns.

What should have happened instead?:

I should see no patterns.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

When I click the items to edit them, the patterns aren't present in the wikitext. So they must not exist. Or, OK, if they do exists, they look like a bug.

20230307T171703.jpg (337×250 px, 22 KB)

Event Timeline

Aklapper changed the task status from Open to Stalled.EditedMar 7 2023, 9:45 AM

Hi, I'm not sure what a "pattern" is. Please elaborate what you expect and why without paraphrasing but using specific input, and what happens instead. And what "item" you click. Please be specific.

<nowiki>Wet Wet Wet; Wet Wet Wet; Wet Wet Wet; Wet Wet Wet; Wet Wet Wet; Wet
Wet Wet; Wet Wet Wet; Wet Wet Wet; Ует Ует Ует; Wet Wet Wet; Wet Wet Wet; Wet

Ah, thanks! Not sure if this is still MediaSearch or already WikibaseMediaInfo...

Aklapper renamed this task from Repeated patterns in search results, that don't exist to Repeated patterns and <nowiki> output in search result descriptions.Mar 7 2023, 11:32 AM
Aklapper changed the task status from Stalled to Open.

That looks to be the "File usage on Commons" and "File usage on other wikis" shinning though at least on the Wet Wet Wet category (I haven't looked at the other two) as the only image in there is

TheDJ added subscribers: Mike_Peel, TheDJ.

You can get the same descriptions with normal search

If you throw Category:Wet Wet Wet's contents through Special:ExpandTemplates, you get the same content and it is generated by {{Wikidata Infobox}} (the only content of the category wikipage) and simply a list of ALL the wikidata labels of the category.

This probably helped search engine matches in the old Search, but I'm not sure if this is still needed with the recent optimizations that the Discovery-Search team has made... (worse, i hope it didn't effect their measurements and led to a suboptimal solution...)

CC @Mike_Peel who I'm sure has worked on this :)

Thanks @TheDJ. I'm happy to claim responsibility for this - it's because the Wikidata Infobox improves multilingual search engine optimisation in Commons categories that it's used in by including all language Wikidata labels. I don't think the changes to search helped things here (from my personal point of view, they made things worse by hiding category search results). I've been talking about this for several years now as an improvement to multilingual search on Commons, so I hope Discovery-Search have seen it and that it hasn't unexpectedly affected their research. I would be very reticent to turn this functionality off before knowing that multilingual search has indeed improved beyond this being necessary.