Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Editor cannot search for images in MediaWiki local uploads

I've installed the latest MediaWiki and the latest Visual Editor, everything is looking great but I have one problem though. All my uploaded images cannot be searched when adding media to the article. Can anybody please enlighten me.

like image 805
mateeyow Avatar asked Nov 11 '22 08:11

mateeyow


1 Answers

Things are in flux (some tweaks were needed after CirrusSearch), but VisualEditor's MWMediaSearchWidget uses the srsearch API.

In MediaWiki defaults, this will be a simplistic full text MySQL search, which doesn't do stemming or anything hence is very likely to miss results compared to CirrusSearch.

Additionally, and perhaps more importantly (depending on your wiki), it won't include media from remote repositories like Wikimedia Commons. I'm not sure what to do in that case, perhaps the widget should be modified to (also) query the remote repository's API.

like image 137
Nemo Avatar answered Dec 06 '22 17:12

Nemo