mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gtksearchenginetracker: Use non-case sensitive search for non-fts search
https://bugzilla.gnome.org/show_bug.cgi?id=642773
This commit is contained in:
parent
c5868f05db
commit
288df3d016
@ -300,6 +300,18 @@ sparql_append_string_literal (GString *sparql,
|
|||||||
g_free (s);
|
g_free (s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
sparql_append_string_literal_lower_case (GString *sparql,
|
||||||
|
const gchar *str)
|
||||||
|
{
|
||||||
|
gchar *s;
|
||||||
|
|
||||||
|
s = g_utf8_strdown (str, -1);
|
||||||
|
sparql_append_string_literal (sparql, s);
|
||||||
|
|
||||||
|
g_free (s);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_search_engine_tracker_start (GtkSearchEngine *engine)
|
gtk_search_engine_tracker_start (GtkSearchEngine *engine)
|
||||||
{
|
{
|
||||||
@ -350,8 +362,8 @@ gtk_search_engine_tracker_start (GtkSearchEngine *engine)
|
|||||||
"WHERE {"
|
"WHERE {"
|
||||||
" ?urn a nfo:FileDataObject ;"
|
" ?urn a nfo:FileDataObject ;"
|
||||||
" tracker:available true ."
|
" tracker:available true ."
|
||||||
" FILTER (fn:contains(nfo:fileName(?urn),");
|
" FILTER (fn:contains(fn:lower-case(nfo:fileName(?urn)),");
|
||||||
sparql_append_string_literal (sparql, search_text);
|
sparql_append_string_literal_lower_case (sparql, search_text);
|
||||||
|
|
||||||
g_string_append (sparql,
|
g_string_append (sparql,
|
||||||
"))"
|
"))"
|
||||||
|
Loading…
Reference in New Issue
Block a user