[tracker-miners/wip/carlosg/miner-changes: 14/17] tracker-miner-fs: Update app resetting query



commit cf084e10ff4d2694cdda03a31bd7c8bc4ea1508b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 18 13:50:26 2020 +0200

    tracker-miner-fs: Update app resetting query
    
    This should delete the tracker:extractorHash to get it re-extracted.

 src/miners/fs/tracker-main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 54ec0e1d2..30d79400a 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -124,9 +124,10 @@ miner_reset_applications (TrackerMiner *miner)
 
        sparql =
                "DELETE { ?icon a rdfs:Resource } "
-               "WHERE { ?app a nfo:SoftwareApplication; nfo:softwareIcon ?icon } "
-               "DELETE { ?app nie:dataSource <" TRACKER_PREFIX_TRACKER "extractor-data-source> } "
-               "WHERE { ?app a nfo:SoftwareApplication } ";
+               "WHERE { ?app a nfo:SoftwareApplication; nfo:softwareIcon ?icon }; "
+               "DELETE { ?app tracker:extractorHash ?h } "
+               "WHERE { ?app a nfo:SoftwareApplication ; "
+               "             tracker:extractorHash ?h } ";
 
        /* Execute a sync update, we don't want the apps miner to start before
         * we finish this. */


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