[HOME PAGE] [STORES] [CLASSICISTRANIERI.COM] [FOTO] [YOUTUBE CHANNEL]


Bug 10609 – Remove redirects from AJAX Search results

Last modified: 2011-03-13 18:06:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10609 - Remove redirects from AJAX Search results
Remove redirects from AJAX Search results
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Lowest trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-16 22:17 UTC by Sergey Chernyshev
Modified: 2011-03-13 18:06 UTC (History)
0 users

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


Attachments
Remove redirects from AJAX Search results (736 bytes, patch)
2007-07-16 22:17 UTC, Sergey Chernyshev
Details

Description Sergey Chernyshev 2007-07-16 22:17:23 UTC
Created attachment 3920 [details]
Remove redirects from AJAX Search results

AJAX Search functionality seems to return redirects as part of it's results.

See attached patch that checks page_is_redirect column to be 0.

From the first glance it seems that putting this restriction after page_title LIKE ... is better because indexes are on page_namespace followed by page_title, but I'm not sure if they are used that much with LIKE. Someone with better knowledge of MW db indexes, please check.
Comment 1 Brion Vibber 2007-07-17 14:02:06 UTC
We want to include redirects; that's one of the reasons they exist.
Comment 2 Sergey Chernyshev 2007-07-17 14:11:38 UTC
Yes, I understand your point - every name is worth keeping. It seems to be a problem with some other installations though - with setups where there are many misspelling redirects or other non-essential ones.

Maybe it should be configurable.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-17 16:23:45 UTC
Misspelling redirects are there for a reason too.  If someone quickly types, on Wiktionary, "superce", then pauses, they should get "supercede" as an option even if it's a redirect to "supersede".  Because otherwise they'll say, hey, what's with this stupid dictionary not having the word I want?  Obviously that's just an example, but you see the point, I think.
Comment 4 Sergey Chernyshev 2007-07-17 16:30:22 UTC
Yes, exactly. For some projects it makes sense, but it doesn't for others. Check how many JRR Tolkiens are out there - maybe showing all of them doesn't make sense. Regular search on Wikipedia doesn't show them (but if user typed Tolkein, then it'll show Tolkien) it means that there are reasons for not showing redirects in search results on some projects.

I propose to have it configurable and I can probably create a patch for that.
Comment 5 Brion Vibber 2007-07-17 16:59:33 UTC
The ideal behavior in most cases would likely be to list the original in the result (perhaps with a little note that it was found via a redirect) -- and to only return _one_ result, rather than multiple matching redirects.
Comment 6 Sergey Chernyshev 2007-07-17 17:15:43 UTC
Yes, sounds reasonable. I'll see if I can do that.

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


Contents Listing Alphabetical by Author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Unknown Other

Contents Listing Alphabetical by Title:
# A B C D E F G H I J K L M N O P Q R S T U V W Y Z Other

Medical Encyclopedia

Browse by first letter of topic:


A-Ag Ah-Ap Aq-Az B-Bk Bl-Bz C-Cg Ch-Co
Cp-Cz D-Di Dj-Dz E-Ep Eq-Ez F G
H-Hf Hg-Hz I-In Io-Iz J K L-Ln
Lo-Lz M-Mf Mg-Mz N O P-Pl Pm-Pz
Q R S-Sh Si-Sp Sq-Sz T-Tn To-Tz
U V W X Y Z 0-9

Biblioteca - SPANISH

Biblioteca Solidaria - SPANISH

Bugzilla

Ebooks Gratuits

Encyclopaedia Britannica 1911 - PDF

Project Gutenberg: DVD-ROM 2007

Project Gutenberg ENGLISH Selection

Project Gutenberg SPANISH Selection

Standard E-books

Wikipedia Articles Indexes

Wikipedia for Schools - ENGLISH

Wikipedia for Schools - FRENCH

Wikipedia for Schools - SPANISH

Wikipedia for Schools - PORTUGUESE

Wikipedia 2016 - FRENCH

Wikipedia HTML - CATALAN

Wikipedia Picture of the Year 2006

Wikipedia Picture of the Year 2007

Wikipedia Picture of the Year 2008

Wikipedia Picture of the Year 2009

Wikipedia Picture of the Year 2010

Wikipedia Picture of the Year 2011