Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use Boolean (NOT, OR) searches in Spotlight' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Boolean (NOT, OR) searches in Spotlight
Authored by: jacobolus on May 12, '05 03:20:57PM
Let me clarify my earlier remark. The raw query syntax for a search on, say,
mac|hints
will be something like:
* = "mac|hints*"wcd || kMDItemTextContent = "mac|hints*"cd
As far as I can tell, this only picks up "mac OR hints" in the text content. I think the "this|that*" syntax doesn't work for other fields, and finds nothing.

So if you want to search only through text contents, then this method works okay. If you're looking for filenames, image keywords, or anything else, you're out of luck. It won't even find a folder named "mac hints"

Also, I'm not sure of this, but I think that probably it will still find any word that begins with the word/fragment/prefix of whatever the last word is in the query, but it may not work for the word before the |, as there's no longer a * after it. And you can't add a * to the query, as spotlight escapes such characters automatically: "\*" will show up in the raw query.

[ Reply to This | # ]

10.4: Use Boolean (NOT, OR) searches in Spotlight
Authored by: jacobolus on May 12, '05 03:22:47PM

that last should be "\*", not "*"... silly html formatting away my backslash



[ Reply to This | # ]