Friday, September 29, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1019  / 2 Years ago, wed, february 16, 2022, 12:35:49

I have directories like ~Work ~School ~Movies.
Is it possible to search for files in only one of those directories with tracker-search-tool (or with tracker in general)?

More From » files


I asked in IRC and it is not possible with tracker-search-tool but it is possible on the CLI:

The tracker search tool is pretty simple (and I am not very familiar
with it) but at the least this can be
done using command line tools (or
custom queries in general). For instance, to find all
the images under a specific directory
(or actually the url of which starts
with that specific directory) that
Full-Text-Search match the string
testi can be obtained with

tracker-sparql -q "SELECT ?uri nfo:fileName(?uri) WHERE {?uri a nfo:Image . ?uri fts:match 'testi' . ?uri nie:url ?url FILTER(fn:starts-with(?url, 'file:///home/masi/Pictures/Wallpapers')) }"

[#44925] Thursday, February 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 424
Total Questions: 103
Total Answers: 101

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
barted questions