]> arthur.barton.de Git - netatalk.git/commit
Spotlight: "spotlight expr = false" broke the default Spotlight query
authorRalph Boehme <rb@sernet.de>
Wed, 4 Jun 2014 20:42:37 +0000 (22:42 +0200)
committerRalph Boehme <rb@sernet.de>
Wed, 4 Jun 2014 20:42:37 +0000 (22:42 +0200)
commitd6b12788118ea685230333243f762cedf1c4cf1a
tree70f8a0f8319f1871dd8d1532ac95e90a136eb4d1
parent371efee757ed56fd9e2f46b39fae625924d2cfc2
Spotlight: "spotlight expr = false" broke the default Spotlight query

The default Spotlight query a Mac uses is

  *=="test*"cwd || kMDItemTextContent=="test*"cwd

which is of course using a logic expression. The parser has an extra
rule for catching this (MATCH or MATCH) for the purpose of munging
both expression into a single fts:match SPARQL query. Which means
we shouldn't check whether logic expressions are enabled or not.

Signed-off-by: Ralph Boehme <rb@sernet.de>
etc/spotlight/slmod_sparql_parser.c
etc/spotlight/slmod_sparql_parser.y