Page MenuHomePhabricator

Preemptively search for suggestions
Open, HighPublic

Description

This task covers the work necessary to add srenablerewrites=1 to our search queries, digest the new response format, and alert the user when showing results 1) for a suggested query instead of the query as typed 2) from an alternate wiki instead of the primary wiki.

  1. For example, a user searches for "wikioedia". The app shouldn't say "did you mean wikipedia?" The app should say "Showing results for wikipedia. Search instead for wikioedia".

https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikioedia
https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikioedia&srenablerewrites=1

  1. "Showing results from Russian Wikipedia. Search only in English instead?"

https://en.wikipedia.org/w/index.php?title=Special:Search&search=вместе+с+которым+написал

Still todo: design and product sign off.

Related tasks: T142795, T129124, T121936