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



commit a4352628c366cdb1db23515733a3c75c4f0eddc9
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]