Page MenuHomePhabricator

Default MediaWiki search engine does not specify if a page is redirect
Open, LowPublic

Description

Blah is a redirect page

When i search for a redirect page in MediaWiki 1.24wmf9 should the search result show that the page is a redirect? Also, should it be classified as something else other than a content page?


Version: 1.24rc
Severity: minor

Attached:

mw-search-bug.png (631×1 px, 60 KB)

Details

Reference
bz66570

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:25 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz66570.
bzimport added a subscriber: Unknown Object (MLST).

This is a potential WONTFIX as we don't care about the old search.

This is not a WONTFIX as we still support the core SQL-backed search. This is a known bug in the core search I'm afraid :(

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Attaching more realistic screenshots (searching for a term that returns many results, and redirects are clutter). The core search example is from this URL, on a project with:

  • MediaWiki 1.27.4
  • PHP 5.6.32 (apache2handler)
  • MySQL 5.6.38

I assume (hope) that the final behavior will be like T5174 where each redirect, if found, collapses on to the line of its target. That adds information, while allowing it to be disregarded easily if the user is looking for content rather than doing maintenance.

redirect collapsing works on enwiki 20180216.png (768×1 px, 297 KB)

redirect collapsing does not work with MediaWiki core search 20180216.png (768×1 px, 175 KB)

This is still an issue in latest master. Creating "Sandbox" as redirect to "Box of sand" (existant), and searching for "Sand" or "Sandbox" yields somewhat ugly results with excerpts like #REDIRECT[[Box of sand]], the same as it was in 2014.

MPhamWMF subscribed.

Closing out low/est priority tasks over 6 months old with no activity within last 6 months in order to clean out the backlog of tickets we will not be addressing in the near term. Please feel free to reopen if you think a ticket is important, but bare in mind that given current priorities and resourcing, it is unlikely for the Search team to pick up these tasks for the indefinite future. We hope that the requested changes have either been addressed by or made irrelevant by work the team has done or is doing -- e.g. upgrading Elasticsearch to a newer version will solve various ES-related problems -- or will be subsumed by future work in a more generalized way.

RhinosF1 removed a project: Discovery-Search.
RhinosF1 subscribed.

Re-opening tasks and removing from team workboard per IRC feedback given yesterday and discussion with MPham.