Loading ...
Sorry, an error occurred while loading the content.

Boolean search in Spotlight

Expand Messages
  • John Rethorst
    This is included in Spotlight but apparently not documented. HiramNL found this syntax, per Gareth Potter in ... [Boolean AND is simply spaces between words.]
    Message 1 of 1 , Jun 15, 2005
    • 0 Attachment
      This is included in Spotlight but apparently not documented.
      HiramNL found this syntax, per Gareth Potter in
      theappleblog.com:

      > Boolean OR

      > (dog|cat)

      > will find all documents, messages, contacts, etc.
      > containing either the word `dog' or the word `cat'.
      > The brackets are evidently optional.

      > Boolean NOT

      > dog(-cat)

      > will find all documents with the word `dog' in, but
      > exclude any which contain the word `cat'. The brackets
      > here are required.

      > One might well wonder why Apple couldn't make this
      > functionality a little more accessible, say by allowing
      > all caps ORs and NOTs in Spotlight queries instead of
      > these rather obscure bracketed syntaxes. There is some
      > suggestion that it is due to boolean searching's not yet
      > being fully implemented, hence the decision to keep the
      > functionality "hidden". For those of us that want it in
      > the meantime, this will have to do.

      [Boolean AND is simply spaces between words.] All this,
      of course, works with WP.

      John R.
    Your message has been successfully submitted and would be delivered to recipients shortly.