Skip to content
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

Matching translations and searching #135

Open
johankool opened this issue Sep 2, 2024 · 3 comments
Open

Matching translations and searching #135

johankool opened this issue Sep 2, 2024 · 3 comments

Comments

@johankool
Copy link
Collaborator

                "name": {
                    "any": "Nicolaus Copernicus University",
                    "en": "Nicolaus Copernicus University",
                    "pl": "Uniwersytet Miko\u0142aja Kopernika"
                },

Currently we match only on the name in the current language, so if you run the app in English or Dutch it matches on "Nico" and on "NCU", and in Polish it matches on "Miko" and "UMK".

Should we match across languages? Might be confusing when matches show that don't seem to match the query, but also may make it harder to find an organization when looking for the English name or abbreviation while running in the local language.

@jornane

This comment was marked as off-topic.

@jornane
Copy link
Member

jornane commented Nov 27, 2024

When searching, match every language, but prioritise matches that are in the preferred languages of the user, and in the country of the users' locale.

@johankool
Copy link
Collaborator Author

Prioritizing matches in the preferred language is quite different from the current way: it either matches or not, then sorted alphabetically. We don't sort by how well an entry matches.

When needing to search through all languages, I do think it might be time to bite the bullet on using SQLite locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants