https://bugzilla.wikimedia.org/show_bug.cgi?id=69766

--- Comment #5 from Gryllida <[email protected]> ---
This one: https://ru.wikipedia.org/wiki/MediaWiki:Gadget-wikilinker.js
Its documentation: https://ru.wikipedia.org/wiki/Википедия:Гаджеты/Викиссыльщик

Description of the gadget issues:

TL;DR: they actually look up "биолог*" as they do client-side stemming in js to
format wikilinks correctly. The cirrus search gives weird results, as it misses
[[Биология]] on RU.WN for some reason, while it doesn't miss it on RU.WP. 

This should probably go to a separate bug, or it probably should not - I have
not yet analysed this behaviour enough to understand whether it has anything to
do with the original issue described in this bug.

----

The gadget has 3 versions.

1) The old version (old version in diff [1]) uses default search engine.

loadXMLDoc(wgServer + wgScriptPath +
'/api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=json&srsearch='
+ preparedText);

2) The "new" version (new version in diff [1]) has explicitly set to use lucene
search. This was done in this edit [1] with comment that cirrus search gives
unreliable results. This version works at Russian Wikipedia, but stopped
working at Russian Wikinews around the end of July. It gives a 'HTTP timeout'
message.

loadXMLDoc(wgServer + wgScriptPath +
'/api.php?action=query&list=search&srbackend=LuceneSearch&srlimit=5&srprop=&srredirects=1&format=json&srsearch='
+ preparedText);

3) A local Russian Wikinews [2] (and maybe other projects) version is exactly
the same as version (1).

var xmlDocUrl =
'//ru.wikipedia.org/w/api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=json&origin='
+ document.location.protocol + '//' + document.location.hostname + '&srsearch='
+ preparedText;

[1]
https://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-wikilinker.js&diff=60626342&oldid=56265657
[2] https://ru.wikinews.org/wiki/MediaWiki:Gadget-wikilinker.js

---

I looked at raw net log in a browser and realised that apparently the scripts
all use client-side stemming and look up "биолог*". Sorry, I probably wrongly
identified the issue causing the gadget being broken. Now, some more analysis
follows, below; I would file a new bug, but I did not yet identify the exact
issue behind the problem and whether it is different.

---

This means we have these 3 sort of queries:

1)
api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=json&srsearch=биолог*
2)
api.php?action=query&list=search&srbackend=LuceneSearch&srlimit=5&srprop=&srredirects=1&format=json&srsearch=биолог*
3)
api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=json&srsearch=биолог*

OK, 1 and 3 are the same. Forget 3.

---


This means we have these 2 sort of queries:

1)
api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=json&srsearch=биолог*
2)
api.php?action=query&list=search&srbackend=LuceneSearch&srlimit=5&srprop=&srredirects=1&format=json&srsearch=биолог*

---

Results:

Russian Wikipedia:
1) Биология
2) Биология

Russian Wikinews:
1) Интервью с исследователем органов чувств Домиником Кларком о шмелях и
электрических полях цветков
2) HTTP timeout

Note that "Биология" also exists at Russian Wikinews (although it is a
redirect).


Now Russian Wikinews no longer can use Wikilinker to link to local articles.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to