Last modified: 2014-05-02 08:46:48 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 T46038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44038 - Search local titles with another language
Search local titles with another language
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-16 17:33 UTC by Scott Martin (http://enwp.org/user:scott)
Modified: 2014-05-02 08:46 UTC (History)
9 users (show)

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


Attachments

Description Scott Martin (http://enwp.org/user:scott) 2013-01-16 17:33:07 UTC
The search box suggests titles as you type. If there were a language selector next to it, you could search through the list of articles in that language. Aha, but you say, what's the point of that? If I wanted to read about "Green Eggs and Ham" in Italian ("Prosciutto e uova verdi"), I would go to the Italian Wikipedia and read it there. Well, that's not what I'm proposing; what I mean is, if you selected Italian and searched for "Prosciutto e uova verdi", you would get taken to the English article, "Green Eggs and Ham".

When you type in the search box, it sends an Ajax request off to what I imagine must be an API somewhere for the Wikipedia database which responds with a list of matching article titles. I don't know what the syntax is for that request, so here's some pseudocode for the purposes of illustration:

API?action=titlesearch;query=

Suppose we select Italian and start searching for "prosciutto e". The API call is:

API?action=titlesearch;lang=it;query=prosciutto e

We get one result back, "Prosciutto e uova verdi". As we're operating with Italian selected, clicking it sends the API request:

API?action=showarticle;titlelang=it;title=Prosciutto e uova verdi

That returns "Green Eggs and Ham" and sends the user there.

Of course, this requires a complete table of interlanguage mappings. If I understand it right, that's something that will eventually be provided by Wikidata.
Comment 1 Andre Klapper 2013-03-26 11:19:56 UTC
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]
Comment 2 Andre Klapper 2013-04-22 09:14:14 UTC
Hi Scott. Thanks for taking the time to report this!
This particular problem has already been reported into our bug tracking system, but please feel free to report any further issues you find.

*** This bug has been marked as a duplicate of bug 1837 ***
Comment 3 Andre Klapper 2013-04-22 09:16:58 UTC
Sorry for dup'ing, not exactly the same request.
Comment 4 Dan Garry 2014-02-11 18:13:10 UTC
Moving this feature request to CirrusSearch.
Comment 5 PiRSquared17 2014-03-06 03:16:17 UTC
Do you mean:
(a) to search itwiki titles and associate them with enwiki pages
(b) to search Wikidata titles in a specific language and associate with enwiki pages
?
Comment 6 Scott Martin (http://enwp.org/user:scott) 2014-03-09 16:15:14 UTC
(In reply to PiRSquared17 from comment #5)
> Do you mean:
> (a) to search itwiki titles and associate them with enwiki pages
> (b) to search Wikidata titles in a specific language and associate with
> enwiki pages
> ?

The latter - search the subset of Wikidata titles in a specific language that have linked titles in the site's local language.
Comment 7 PiRSquared17 2014-03-18 22:07:12 UTC
What would the interface for switching search languages be? I'm not sure if this would require an [[mw:RFC]].
Comment 8 Scott Martin (http://enwp.org/user:scott) 2014-03-29 16:30:02 UTC
I was picturing a dropdown next to the search box, but UI people would need to be involved on this front.

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


Navigation
Links