[tracker-miners/tracker-miners-3.0] tracker-search.c : Fixed the folder search



commit 18b4bb159004614d5afc61d19080f3fdb9dce5d1
Author: nis130 <nishitlimbani130 gmail com>
Date:   Sun Jan 10 16:21:01 2021 +0530

    tracker-search.c : Fixed the folder search
    
    (cherry-picked from commit 45e0a8b44900ff97f7df113d6d5416c36cf9df26)

 src/tracker/tracker-search.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/tracker/tracker-search.c b/src/tracker/tracker-search.c
index 7e66db0ec..892ddbc15 100644
--- a/src/tracker/tracker-search.c
+++ b/src/tracker/tracker-search.c
@@ -1028,7 +1028,8 @@ get_folders (TrackerSparqlConnection *connection,
                query = g_strdup_printf ("SELECT ?u nie:isStoredAs(?u) "
                                         "WHERE { "
                                         "  ?u a nfo:Folder ;"
-                                        "  fts:match \"%s\" ."
+                                        "  nie:isStoredAs ?url ."
+                                        "  ?url fts:match \"%s\" ."
                                         "  %s"
                                         "} "
                                         "ORDER BY ASC(nie:isStoredAs(?u)) "


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]