NOT operator
Use the NOT Boolean operator in combination with the AND operator (or its equivalent symbols) when you want to search for documents that do not contain a specified term or phrase.
The NOT operator can also be denoted with an exclamation point (!) or with a minus sign (-).
The following search predicates find documents that contain the
term UNIX
, but not the term Windows
:
bts_contains(column, ' UNIX AND NOT Windows ')
bts_contains(column, ' UNIX AND !Windows ')
bts_contains(column, ' +UNIX -Windows ')
The minus sign (-) can be used with the plus sign (+), but not with the AND operator.