VisualEditor sends off a request like this:
https://en.wikipedia.org/w/api.php?action=query&format=jsonfm&generator=search&gsrnamespace=6&iiurlheight=200&iiprop=dimensions%7Curl%7Cmediatype%7Cextmetadata%7Ctimestamp%7Cuser&prop=imageinfo&gsrsearch=example&iiurlwidth=400&gsroffset=0&gsrlimit=15

So those rules are determined by your search engine, not VE itself.

On 15 January 2016 at 10:53, Daniel Barrett <[email protected]> wrote:

> We've installed VisualEditor on our local wiki (1.26.2), and I have a
> question about how the "Insert > Media" command works.
>
> It pops up a search box, and when you enter some text, it displays images.
> How is it determining which images "match" my search? The results seem
> counterintuitive.
>
> For instance, if I type "Example", and my wiki contains File:Example.jpg,
> this image does NOT come up in the search results. (This seems really odd.)
>
> A different image named File:Foobar.jpg appears in the results. It has the
> word "example" in the text of its File page. However, other images that
> also contain the word "example" on their File pages do not appear.  (One of
> them is File:Example.jpg!)
>
> I'm using the default MediaWiki search engine (mySQL search), if that
> matters.  Our production servers run CirrusSearch, but we haven't tried
> VisualEditor on those servers yet.
>
> Thanks,
> DanB
>
>
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to