-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(search-index): use en-US popularities for German #12212
Conversation
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded
Removed
Bigger No assets were bigger Smaller
Unchanged
|
Can we solve this like this for now? (Note:
This won't fix it for the local experience but that's fine. |
The search index contains the page titles, so unfortunately this is not an acceptable solution from a UX perspective, because it would mean the German quick search shows English page titles. |
This pull request has merge conflicts that must be resolved before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we wrap it in a try...catch
just to be safe. Otherwise 👍
4d56fa3
to
5583e87
Compare
Good idea, fixed in 5583e87. |
Summary
(MP-1779)
Ported to rari in mdn/rari#53.
Problem
The German quick search does not show results in a very useful order, because it is based on page views in the previous month, and the German locale did not have any page views in the last month (October).
Solution
Use the page views fromen-US
instead.Use the
en-US
search index to reorder thede
index at deployment time (as per @fiji-flo's request).Screenshots
How did you test this change?
Ranyarn && yarn dev
withCONTENT_TRANSLATED_ROOT
pointing to../translated-content-de/files
and viewed http://localhost:3000/de/, comparing it to https://developer.mozilla.org/de/.search
in en-US and de.