Page MenuHomePhabricator

Cross-wiki search completion suggestor based on interwiki prefixes
Open, LowPublic

Description

Feature request, for the search completion suggestor to automatically search cross-wiki, if given an interwiki prefix to start.
E.g. At English Wikipedia, typing "wikt:foo" into the search bar, would trigger search suggestions that come from English Wiktionary.

(Task based on proposal in https://meta.wikimedia.org/wiki/2016_Community_Wishlist_Survey/Archive#Cross-wiki_search_suggestions that is unfeasible in the short-term. Full copy:)

  • Problem: It is possible to navigate, for example, from English wikipedia to the article about Argentina in Spanish wikipedia by entering "es:Argentina" in the search box, or to the English wiktionary entry about whatever by entering "wikt:whatever". You won't, however, be given search suggestions like when you are about to navigate to another page in the same wiki.
  • Who would benefit: Users who are interested in several wikis.
  • Proposed solution: Our search engine should learn that, if the text entered into the search box begins with interwiki prefixes as described here, search suggestions should be made from that very wiki associated with the given interwiki prefix.

*See also: T139504: Limit completion suggester building to single project

Event Timeline

Quiddity created this task.Nov 23 2016, 8:04 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 23 2016, 8:04 PM
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptDec 8 2016, 11:16 PM

This might be a nice project for someone looking to get started with development. In theory it shouldn't be too complicated...

Deskana triaged this task as Low priority.Dec 8 2016, 11:17 PM
Deskana moved this task from needs triage to later on... on the Discovery-Search board.

@Anbans585 Hi. In answer to your question on my usertalkpage, the repo you want to look at is https://www.mediawiki.org/wiki/Extension:CirrusSearch

Note: I asked a dev (I am not a dev) and they said this task might be a little bit too complicated for a very-first-bug, unless you have some experience with developing elsewhere. If you're a newcomer to development in general, then you might want to look at another task. But if you're able to cope with some complexity, then @EBernhardson or @DStrine might be able to help you with any advanced blockers you encounter. :-)

Actually, the other person familiar is @dcausse . Essentially Cirrus should have all the appropriate parts these days to lookup the appropriate config to send an interwiki query (we do this for full text), but we've never built out that capability for autocomplete. This task would be to extend what to do for full text interwiki to also work with the prefix and completion search.

Quiddity removed a subscriber: DStrine.Oct 29 2018, 6:45 PM

@EBernhardson, @dcausse Can you help me in setting things up as it is my very first bug. Also if you think that it is bit difficult for a very first bug can you give me some advice on where should I start contributing from?

@Anbans585: Hi and welcome! Do you have a specific question that we could help with?