Last modified: 2014-07-24 21:11:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70518, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68518 - Special:SearchTranslations: allow messageid with ElasticSearch
Special:SearchTranslations: allow messageid with ElasticSearch
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal normal (vote)
: MW 1.24 version
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-24 17:41 UTC by Sorawee Porncharoenwase
Modified: 2014-07-24 21:11 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sorawee Porncharoenwase 2014-07-24 17:41:44 UTC
Note:
I'm not sure if this bug should belong to translatewiki or MediaWiki. If you think that it should be moved, just do it!

Description:
[[gerrit:94064]] added an external link to translatewiki.net to every message
in Special:AllMessages. While this change is a very good idea, the produced links are completely broken. Below are some examples.

== Example 1 ==
Message ID:
abusefilter-changeslist-examine

Link:
https://th.wikipedia.org/w/index.php?title=Special:AllMessages&prefix=abusefilter-changeslist-examine&filter=all&lang=th&limit=500

Link to translatewiki:
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&group=mediawiki&grouppath=mediawiki&query=language%3Ath^25+messageid%3A%22MediaWiki%3AAbusefilter-changeslist-examine%22^10+%22examine%22

Generated query:
language:th^25 messageid:"MediaWiki:Abusefilter-changeslist-examine"^10 "examine"

Results (failed):
1) examine - MediaWiki:Abusefilter-changeslist-examine/en
2) Examine individual changes - MediaWiki:Abusefilter-examine/en
3) Examine past edits - MediaWiki:Abusefilter-topnav-examine/en
...

There is no MediaWiki:abusefilter-changeslist-examine/th in the result at all.

== Example 2 ==
Message ID:
MediaWiki:Anonnotice

Link: 
https://th.wikipedia.org/w/index.php?title=Special:AllMessages&prefix=Anonnotice&filter=all&lang=th&limit=500

Link to translatewiki:
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&group=mediawiki&grouppath=mediawiki&query=language%3Ath^25+messageid%3A%22MediaWiki%3AAnonnotice%22^10+%22-%22

Generated query:
language:th^25 messageid:"MediaWiki:Anonnotice"^10 "-"

Results (failed):
1) 10. - MediaWiki:Oct/cs
2) 10 - MediaWiki:Oct/ko
3) Button label, 25 characters maximum - MediaWiki:Donate interface-monthly-donation/qqq

There is no MediaWiki:Anonnotice/th in the result at all.

=================================================

My observation:

The solr search does not yield consistent results at all. Last month (June 25, 2014), I encountered this bug and attempted to solve it ([[gerrit:141728]]). Although my patch was not okay, I finally found the cause of the problem. That is, searching with query string

(for example, https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&group=mediawiki&grouppath=mediawiki&query=language%3Ath^25+messageid%3A%22MediaWiki%3AAbusefilter-changeslist-examine%22^10+%22examine%22)

yielded wrong results, while searching via search box

(for example, language:th^25 messageid:"MediaWiki:Abusefilter-changeslist-examine"^10 "examine")

yielded correct results.

Even worse, now (July 25, 2014), both ways yield wrong results!
Comment 1 Nemo 2014-07-24 18:13:24 UTC
translatewiki.net is no longer using Solr since https://gerrit.wikimedia.org/r/#/c/145437/ (cf. bug 52993 - Add support for ElasticSearch backend for ttmserver).

I confirm my two examples on [[gerrit:94064]] don't work any longer. Niklas, is that syntax supposed to work with the new scheme, or does it still need to be reimplemented?
Comment 2 Niklas Laxström 2014-07-24 20:39:24 UTC
It has not been implemented for ES. It is possible to implement it with some manual query parsing as we don't expose the full query syntax with ES.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links