]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/spotlight_SPARQL_map.c
Various fixes
[netatalk.git] / etc / afpd / spotlight_SPARQL_map.c
index faf3bca1b6bd9b567c0eaf9e9050531a09c9d621..553e7639c7a840a6bc47ae34399910d1171c846e 100644 (file)
 #include "spotlight_SPARQL_map.h"
 
 struct spotlight_sparql_map spotlight_sparql_map[] = {
+/*   ssm_spotlight_attr                    ssm_sparql_attr              ssm_sparql_query_fmtstr */
     {"*",                                  "fts:match",                 "?x fts:match '%s'"},
     {"kMDItemTextContent",                 "fts:match",                 "?x fts:match '%s'"},
-    {"kMDItemDisplayName",                 "nfo:fileName",              "?x nfo:fileName ?name FILTER(regex(?name, '%s'))"},
+    {"kMDItemDisplayName",                 "nfo:fileName",              "?x nfo:fileName ?y FILTER(regex(?y, '%s'))"},
     {"kMDItemContentCreationDate",         "nfo:fileCreated",           "?x nfo:fileCreated '%s'"},
     {"kMDItemFSContentChangeDate",         "nfo:fileLastModified",      "?x nfo:fileLastModified '%s'"},
     {"kMDItemContentModificationDate",     "nfo:fileLastModified",      "?x nfo:fileLastModified '%s'"},