summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-utils.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-02-24 13:02:16 +0000
committerRichard Hughes <richard@hughsie.com>2016-02-24 17:40:34 +0000
commitd9953c52cd15fe92d8178a87de7be6a6a132f6bd (patch)
tree2a559588cc96a775c78187ab5fffa926bf1b1456 /libappstream-glib/as-utils.c
parenta5c25e381f6d11e306e2206a2722fdd563cce52c (diff)
downloadappstream-glib-d9953c52cd15fe92d8178a87de7be6a6a132f6bd.tar.gz
Improve the application search tokenizing and filtering
Now, only one token is counted of each type which was causing some apps with multiple addons to be counted much higher in the search results than they deserved. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=760068
Diffstat (limited to 'libappstream-glib/as-utils.c')
-rw-r--r--libappstream-glib/as-utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c
index 92213db..b7a69dd 100644
--- a/libappstream-glib/as-utils.c
+++ b/libappstream-glib/as-utils.c
@@ -1548,6 +1548,14 @@ as_utils_search_token_valid (const gchar *token)
"this", "other", "all", "using", "has", "some", "like", "them",
"well", "not", "using", "not", "but", "set", "its", "into",
"such", "was", "they", "where", "want", "only", "about",
+ "uses", "font", "features", "designed", "provides", "which",
+ "many", "used", "org", "fonts", "open", "more", "based",
+ "different", "including", "will", "multiple", "out", "have",
+ "each", "when", "need", "vnd", "most", "both", "their", "even",
+ "way", "several", "been", "while", "very", "add", "under",
+ "what", "those", "much", "either", "currently", "one",
+ "support", "make", "over", "these", "there", "without", "etc",
+ "main",
NULL };
if (strlen (token) < 3)
return FALSE;