Re: Spotlight query operator NOT
Re: Spotlight query operator NOT
- Subject: Re: Spotlight query operator NOT
- From: Kaelin Colclasure <email@hidden>
- Date: Mon, 1 May 2006 17:11:12 -0700
On May 1, 2006, at 1:48 PM, Pierre Bernard wrote:
Oddly enough the 2 Spotlight queries below match the very same files:
(( (kMDItemTextContent like[cdw] 'raja*')) && ( (kMDItemTextContent
like[cdw] 'houdah*')))
(( (kMDItemTextContent like[cdw] 'raja*')) && !
( ( (kMDItemTextContent like[cdw] 'houdah*')) ))
It's like the NOT operator is ignored. This is the same if I write
the query like this:
( (kMDItemTextContent like[cdw] 'raja*')) AND (NOT
( ( (kMDItemTextContent like[cdw] 'houdah*')) )))
What gives?
The short version is, it's a bug. :-( Please file a Radar with
<http://bugreporter.apple.com/>.
The longer version is, negating the results of a kMDItemTextContent
term isn't (currently) supported -- because the underlying
functionality needed to do so was not available from SearchKit in
Tiger. Negating non-content terms should work as expected.
-- Kaelin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden