[tracker] tracker-utils: Case insensitive stopwords
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-utils: Case insensitive stopwords
- Date: Mon, 22 Feb 2010 10:25:24 +0000 (UTC)
commit e9246c2f3af422337ef7c44d2a771a7e530d8e1b
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Feb 22 11:22:56 2010 +0100
tracker-utils: Case insensitive stopwords
Fixes NB #157286
src/tracker-utils/tracker-search.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-utils/tracker-search.c b/src/tracker-utils/tracker-search.c
index 741928e..530dcea 100644
--- a/src/tracker-utils/tracker-search.c
+++ b/src/tracker-utils/tracker-search.c
@@ -853,11 +853,13 @@ main (int argc, char **argv)
for (p = terms, stop_word_found = NULL; *p && !stop_word_found; p++) {
gpointer data;
+ gchar *up = g_utf8_strdown (*p, -1);
- data = g_hash_table_lookup (stop_words, *p);
+ data = g_hash_table_lookup (stop_words, up);
if (data) {
stop_word_found = *p;
}
+ g_free (up);
}
if (stop_word_found) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]