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
Sorting is not prefering name matches #77
Comments
|
It looks to me like it is preferring names but in reverse, which I assumed was by design. In fact, the sorting line that is used specifically sorts the search results by score, as seen here: https://github.com/ximion/appstream/blob/master/src/as-pool.c#L1051 Furthermore, there is a comment in the So it's really just a question of what is the preferred way to return search results? I also would have expected them to be sorted from highest score match to lowest. |
…cores to be at the top of the list. Fixes ximion#77.
|
Indeed, I made a mistake there :-) |
…cores to be at the top of the list. Fixes #77.
For example, looking for writer doesn't prioritize libreoffice writer.over calligra author.
The text was updated successfully, but these errors were encountered: