• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Spotlight query operator NOT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Spotlight query operator NOT (From: Pierre Bernard <email@hidden>)

  • Prev by Date: Re: filling a TableView with pre-existing data
  • Next by Date: Re: filling a TableView with pre-existing data
  • Previous by thread: Spotlight query operator NOT
  • Next by thread: OffTopic: Progress bar slows down the system
  • Index(es):
    • Date
    • Thread