Page MenuHomePhabricator

Query for whether there is life on mars doesn't highlight the answer when done internally
Open, MediumPublicFeature

Description

Background

If I search for the question "is there life on mars" on Google, it generates a URL that highlights the paragraph with the relevant text.

If the same search is done on Wikipedia the paragraph is found, but when the link is followed I must scan the article to find the relevant text.

Screenshot 2025-04-09 at 2.54.00 PM.png (2,004×734 px, 268 KB)

Screenshot 2025-04-09 at 2.54.12 PM.png (1,136×202 px, 42 KB)

User story

If we provide a better search experience by highlighting the paragraph of text that contains the answer we will help users find answers to their questions quicker.

Requirements

BDD

  • For QA engineer to fill out

Test Steps

  • For QA engineer to fill out

Design

  • Add mockups and design requirements

Acceptance criteria

  • Add acceptance criteria

Communication criteria - does this need an announcement or discussion?

  • Add communication criteria

Rollback plan

  • What is the rollback plan in production for this task if something goes wrong?

This task was created by Version 1.2.0 of the Web team task template using phabulous

Event Timeline

LMora-WMF edited projects, added: Web-Team-Roadmap; removed: Web-Team.

@Jdrewniak: Web-Team-Roadmap was archived. Please either resolve/decline this task or add an active project tag so this open task can be found on a workboard. Thanks.

Jdrewniak changed the subtype of this task from "Task" to "Feature Request".

Tagging experience after talking to Olga as we might run this as a small experience tied in with the new upcoming search initiative.

Question.. Google does some level of semantic parsing of the query and the result. As such, you are likely to get a relevant highlight of your _answer_. In Wikimedia, we have no semantic search. You are matched on your question and with the way we are structured, you are likely to just end up somewhere high in the article I suspect.

Shouldn't step 1 be, taking search queries we now receive and checking how far down the page the highlights for results of those queries actually are ? If they are mostly in the first paragraph, then how useful is a text fragment really going to be ?

For instance: Birthdate of Shirley temple: https://en.wikipedia.org/w/index.php?search=birthdate+of+Shirley+Temple&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1 won't even give you any useful matches. This is because we use 'born'

https://en.wikipedia.org/w/index.php?search=born+of+Shirley+Temple&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1

And when you use that, then the search matches so hard on Shirley temple, that it will just highlight the lead.

egardner renamed this task from Query for whether there is life on mars doesn't highlight the answer when done internally to Query for whether there is life on mars doesn't highlight the answer when done internally.Nov 7 2025, 6:30 PM
egardner lowered the priority of this task from High to Medium.