To OR or not to OR…

Many of you might know this already but when fulltext searching a Domino database and you need to OR some arguments together you have two choices for the syntax.

The verbose option (which I have been using so far):

(FIELD xxx CONTAINS yyy) OR (FIELD xxx CONTAINS zzz) OR (FIELD xxx CONTAINS www)

or the much less verbose option that achieves the same as the above example (which I learned today from a co-worker):

FIELD xxx CONTAINS (yyy, zzz, www)

He found the syntax using trial-and-error – go figure!! 🙂

P.S.: It would be really interesting if there is a AND shorthand as well…