Page MenuHomePhabricator

[epic] Update autocomplete search box with metadata and remove and delete the old searchSuggest system
Open, LowPublic

Description

Let's update the autocomplete search box that is located near the top right of LTR language wikipedias (top left on RTL language wikipedias) to have it be similar to what we currently have on the Wikipedia.org portal page, mobile web and in the mobile apps (this would replace the existing jquery.suggestions possibly by using infused mw.widgets.TitleWidget).

We want to add metadata to the search box - images and wikidata descriptions - as is the norm within other portions of Wikimedia projects.

This would give users:

  • … a more modern, consistent experience,
  • … with images (if the PageImages extension is installed), and
  • … with descriptions (if the WikiBase extensions is installed)
  • also possibly will help to scrap jquery.suggestions
BeforeAfter
T125725 - before.png (861×1 px, 421 KB)
T125725 - after.png (861×1 px, 415 KB)

The current look and feel of the Wikipedia.org portal, mobile web and iOS mobile app search boxes with metadata:

wikipedia-searchbox-with-etadata.png (882×535 px, 201 KB)
enwiki-mobile-autocomplete-with-metadata.PNG (2×1 px, 153 KB)
wiki-app_autocomplete-with-metadata.PNG (2×1 px, 143 KB)

Event Timeline

Jdforrester-WMF raised the priority of this task from to Medium.
Jdforrester-WMF updated the task description. (Show Details)
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

A significant issue i see is that current autocomplete is backed by varnish caching, and TitleWidget is not. The change would need to be done very carefully to keep from blowing everything up

This can't be prioritised by the Search Team right now, as we'd want to run an A/B test to be sure of the impact and we don't have the resources to do that at the minute. Moving this into the backlog.

@Jdforrester-WMF and I discussed this, and an alternative which accomplishes the desired technical effect (scrapping jquery.suggestions) is to make this technical change without the product change of also including images and Wikidata descriptions. There would be some minimal changes for users (slight font change, slight background colour change, etc.) but those are fine to do.

That sounds like the SearchInputWidget Florian was working on (https://gerrit.wikimedia.org/r/#/c/255436/). It uses the same opensearch API as backend, too.

Change 274328 had a related patch set uploaded (by Jforrester):
[WIP][POC][OMGWTFBBQ] Replace the searchSuggest box with an OOUI widget

https://gerrit.wikimedia.org/r/274328

debt added subscribers: JKatzWMF, Moushira, debt.

Adding this to the portal backlog.

I've included screenshots of what the existing wikipedia.org portal searchbox results with metadata looks like as well as what we can try as a test on en.wiki and other wiki's if they're up for it - possibly fr.wiki to start with.

existing-wikipedia_metadata_search_results_display.png (759×614 px, 223 KB)

proposed-en.wiki_metadata_search_results_display.png (876×1 px, 523 KB)

debt renamed this task from Replace jquery.suggestions with an infused mw.widgets.TitleWidget on the simpleSearch tool to Replace jquery.suggestions with an infused mw.widgets.TitleWidget on the simpleSearch tool (updating en.wiki for search results with metadata).Jun 16 2016, 5:17 PM
debt added a subscriber: Jdrewniak.

Moving this ticket to the Search sprint board for future work.

debt renamed this task from Replace jquery.suggestions with an infused mw.widgets.TitleWidget on the simpleSearch tool (updating en.wiki for search results with metadata) to [epic] Update autocomplete search box with metadata.Aug 31 2017, 3:37 PM
debt removed a project: Patch-For-Review.
debt updated the task description. (Show Details)
debt removed a subscriber: Moushira.
debt moved this task from needs triage to search-icebox on the Discovery-Search board.

Moving to the backlog board and later column for Search, as this work isn't a priority right now.

I just want to say this is a great idea and if there is any help I can do to make it happen, let me know.

CBogen lowered the priority of this task from Medium to Low.Aug 27 2020, 9:59 PM

Change 274328 abandoned by Aklapper:

[mediawiki/core@master] [WIP][POC][OMGWTFBBQ] Replace the searchSuggest box with an OOUI widget

Reason:

T125725 is duped into T244392. T244392 is resolved.

https://gerrit.wikimedia.org/r/274328

Jdforrester-WMF renamed this task from [epic] Update autocomplete search box with metadata to [epic] Update autocomplete search box with metadata and kill off the old searchSuggest system.Mar 23 2023, 1:03 PM
Jdforrester-WMF reopened this task as Open.

Not a strict duplicate; the removal of the old code isn't done yet, and we don't have a solution for non-Vector users.

TheDJ renamed this task from [epic] Update autocomplete search box with metadata and kill off the old searchSuggest system to [epic] Update autocomplete search box with metadata and remove and delete the old searchSuggest system.Mar 23 2023, 2:29 PM