Last modified: 2007-07-13 18:57:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5174, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3174 - Exclude redirects from search results
Exclude redirects from search results
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 7812 8850 9320 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-17 09:46 UTC by Dan100
Modified: 2007-07-13 18:57 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan100 2005-08-17 09:46:50 UTC
Some searches, eg http://en.wikinews.org/wiki/Special:Search?
search=london+underground&go=Go , throw up many many redirects. It would be helpful if 
they could be filtered from search results to avoid burying actual articles.

Perhaps redirects could be exculded by default, with an option on the search page saying 
something like "include redirects in search?".
Comment 1 Erik Johansson 2005-10-04 20:12:29 UTC
Found the same bug today, when searching for venice, perhaps results which have
redirects should have climd in the result list for every redirect that match it?
Comment 2 Mike Peel 2006-01-08 14:52:55 UTC
This happens when searching for a number of items on Wikipedia; I've come across
the problem frequently over the last couple of weeks. (e.g. searching for
"graviton" brings up "Gravitons" [redirect to "Graviton"], then "Graviton".)

IMO, where redirects are brought up MediaWiki should follow the redirect and
display the article the redirect points to instead of the redirect itself
(though it should point out that it's got this article through a redirect,
rather than direct terms matching) It should also check and see if this article
is already in the search results, to make sure the article is displayed once
only. While in most cases the latter will be true, which makes the former
irrelevant, there will be times when it isn't - in which case the former will be
useful.
Comment 3 kLL 2006-08-17 14:56:14 UTC
I know there's technical difficulty in having proper URL after redirection AND 
keeping the information, but there's a solution to this problem:

Add <meta name="robots" content="noindex,follow"> to redirected pages (these with 
wrong URL and content taken from another page).

This will exclude duplicates from Google and alike, and since there's "follow" 
directive, link to original page will be followed and proper URL will be indexed.

Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-17 15:07:21 UTC
Above comment was meant to refer to external search engine spiders, not internal
search (which this bug deals with).  See bug 7042.
Comment 5 Brion Vibber 2006-11-05 19:36:33 UTC
*** Bug 7812 has been marked as a duplicate of this bug. ***
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-02-01 19:59:05 UTC
*** Bug 8850 has been marked as a duplicate of this bug. ***
Comment 7 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-03-18 00:55:34 UTC
*** Bug 9320 has been marked as a duplicate of this bug. ***
Comment 8 Robert Stojnic 2007-07-13 18:57:49 UTC
Fixed in Lucene Search 2. Same-namespace redirects are excluded from search results, while their names are indexed alongside the article title they point to.

There are still some issues about redirect table not containing all redirects, and thus results are not always as expected, but this should be settled by running updateLinks.php maintenance script. 

Also, I think that the search results could be a bit more verbose, by showing the redirects that point to the page if they satisfy the query, but that's an issue with the search term highlighter. 


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links