[gnome-software/1620-search-results-should-priorize-full-matches] Apply 1 suggestion(s) to 1 file(s)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1620-search-results-should-priorize-full-matches] Apply 1 suggestion(s) to 1 file(s)
- Date: Tue, 1 Mar 2022 13:22:05 +0000 (UTC)
commit 800cb77a5c9c857820a4460279c9a45b458121a1
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Mar 1 13:22:04 2022 +0000
Apply 1 suggestion(s) to 1 file(s)
lib/gs-appstream.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/lib/gs-appstream.c b/lib/gs-appstream.c
index 50f117c49..05c18a175 100644
--- a/lib/gs-appstream.c
+++ b/lib/gs-appstream.c
@@ -1403,6 +1403,11 @@ gs_appstream_search (GsPlugin *plugin,
continue;
}
g_debug ("add %s", gs_app_get_unique_id (app));
+
+ /* The match value is used for prioritising results.
+ * Drop the ID token from it as it’s the highest
+ * numeric value but isn’t visible to the user in the
+ * UI, which leads to confusing results ordering. */
gs_app_set_match_value (app, match_value & (~AS_SEARCH_TOKEN_MATCH_ID));
gs_app_list_add (list, app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]