[tracker] tracker: Fix search subcommand
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker: Fix search subcommand
- Date: Tue, 13 Nov 2018 14:12:13 +0000 (UTC)
commit 583958cd16380ee6c870a3a9a2ea7b6ddb34ec1c
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 13 14:59:48 2018 +0100
tracker: Fix search subcommand
The SPARQL was referring to a non-existent variable, which
older parser used to ignore.
src/tracker/tracker-search.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker/tracker-search.c b/src/tracker/tracker-search.c
index 782d1bb50..167d86679 100644
--- a/src/tracker/tracker-search.c
+++ b/src/tracker/tracker-search.c
@@ -1401,7 +1401,7 @@ get_all_by_search (TrackerSparqlConnection *connection,
show_all_str = show_all ? "" : "?s tracker:available true . ";
if (details) {
- query = g_strdup_printf ("SELECT tracker:coalesce (nie:url (?s), ?s) nie:mimeType (?s) ?type
fts:snippet(?document, \"%s\", \"%s\") "
+ query = g_strdup_printf ("SELECT tracker:coalesce (nie:url (?s), ?s) nie:mimeType (?s) ?type
fts:snippet(?s, \"%s\", \"%s\") "
"WHERE {"
" ?s fts:match \"%s\" ;"
" rdf:type ?type ."
@@ -1417,7 +1417,7 @@ get_all_by_search (TrackerSparqlConnection *connection,
search_offset,
search_limit);
} else {
- query = g_strdup_printf ("SELECT tracker:coalesce (nie:url (?s), ?s) fts:snippet(?document,
\"%s\", \"%s\") "
+ query = g_strdup_printf ("SELECT tracker:coalesce (nie:url (?s), ?s) fts:snippet(?s, \"%s\",
\"%s\") "
"WHERE {"
" ?s fts:match \"%s\" ."
" %s"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]