mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
searchenginetracker: Fix prefix searches
With the FTS5 query syntax, when using quotes to delimit the search phrase the '*' token must happen after the quote, or will otherwise be considered a character to match, go through the tokenizer, and end up ignored in result.
This commit is contained in:
parent
289fc9640b
commit
0d407bcd6c
@ -242,10 +242,10 @@ sparql_append_string_literal (GString *sparql,
|
||||
|
||||
if (is_dir_uri)
|
||||
g_string_append_c (sparql, '/');
|
||||
if (glob)
|
||||
g_string_append_c (sparql, '*');
|
||||
if (quoted)
|
||||
g_string_append (sparql, "\\\"");
|
||||
if (glob)
|
||||
g_string_append_c (sparql, '*');
|
||||
g_string_append_c (sparql, '"');
|
||||
|
||||
g_free (s);
|
||||
|
Loading…
Reference in New Issue
Block a user