Closed
Bug 452947
Opened 17 years ago
Closed 12 years ago
Search results should only include content from the same locale
Categories
(developer.mozilla.org Graveyard :: Search, defect, P2)
developer.mozilla.org Graveyard
Search
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: db48x, Unassigned)
References
Details
(Whiteboard: [localization])
Currently it returns all documents in the wiki containing the words the user has searched for, but in many cases this is inappropriate. For example, searching for the names of DOM classes or functions returns documents in many languages, because these names are not translated. The result is that the first search result is generally not a document the user can read. For example, the first result when I search for "RegExp" is <http://developer.mozilla.org/index.php?title=Es/Referencia_de_JavaScript_1.5/Objetos_globales/RegExp&highlight=RegExp>; the english version is the fifth result returned.
Instead, the search should look at the Accept-Language header from the HTTP request, and return only documents with that language code with that language code as a prefix to the document title. (This is one way that using these prefixes instead of namespaces or separate installations complicates matters.)
Comment 1•17 years ago
|
||
If you configure your preferred language in your preferences (Site tools->Preferences), that language will automatically be used to filter search results.
I'll suggest to MindTouch using the Accept-Language header if one is present though.
Comment 2•17 years ago
|
||
Just a random note - it doesn't appear to matter what page you initiated the search on. I would have expected that using the search box on https://developer.mozilla.org/En would have returned English results, regardless of the UA preferences, given that it was explicitly English. (This applies to other /en pages too, of course)
(That part may be a local site thing, I have no idea.)
Comment 6•16 years ago
|
||
See http://bugs.developer.mindtouch.com/view.php?id=4856 for the MindTouch bug on this problem.
This is still a huge problem, and I don't think either this bug or the mindtouch bug captures it -- I'm on our search page, and I see:
Search: [xul ] [English v] [Search]
English is clearly visible as a chosen language there, except when I search, I get almost no results in english. It essentially makes search worthless on MDC right now, unless someone happens to know to go and set their preferences (for which they would have to create an account, no?)
Comment 9•16 years ago
|
||
I've updated the bug report on MindTouch's bug database. I'm annoyed by this one as well. It should have been fixed by now.
Comment 11•14 years ago
|
||
Bumping this to P2, assuming it is still an issue. I suspect that bug 670812 would no longer be important to users if this is fixed, but some research is probably necessary.
Updated•14 years ago
|
Priority: -- → P2
Updated•13 years ago
|
Assignee | ||
Updated•13 years ago
|
Component: Deki Infrastructure → Other
Updated•13 years ago
|
Component: Other → Site search
Summary: search should only return results from the user's preferred language → Search results should only include content from the same locale
Updated•12 years ago
|
Whiteboard: [localization]
Comment 13•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/0070b48fcbc5d1079bca6d4240f3ad911952bcc3
fix bug 452947 - Display search results from user's locale
https://github.com/mozilla/kuma/commit/76e9297ebf3bd7b51674b9ab019ec59c06843f20
Merge pull request #1159 from darkwing/search-locale-452947
fix bug 452947 - Display search results from user's locale
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 14•12 years ago
|
||
The search results still display other locales
As a example : "transform" https://developer.mozilla.org/en-US/search?q=transform
show following results:
- [position 3] developer.mozilla.org/en-US/docs/CN_MDN/CSS/transform which redirect to https://developer.mozilla.org/zh-CN/docs/CSS/transform
- [position 4] developer.mozilla.org/en-US/docs/Trash/MDN/CSS/transform which redirect to https://developer.mozilla.org/zh-CN/docs/CSS/transform
Comment 15•12 years ago
|
||
The problem here is not the display of a chinese page: it is merely a side-effect on the real problem which is 'No redirect page should appear in search results.'.
I filed bug 927342 for it.
Thanks for reporting it.
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•