HP StorageWorks Reference Information Storage System V1.4 User Guide (T3559-96028, December 2005)

A NOT expression must be combined, using AND or OR, with another expression other than NOT.A
query cannot consist solely of negative criteria.
NOT quiet
illegal
(NOT quiet) AND (NOT blue) illegal
(NOT quiet) AND blue legal
(NOT quiet) OR
nois*
legal
(NOT quiet) OR peace quiet”
legal
You must p rovide the proper number of arguments for a Boolean operator or an error message results:
oneargumentforNOT (- or !), two arguments for AND (&& )andOR. For example, the following
queries result in an error message.
alpha NOT:M
issing argument for NOT
AND alpha: Missing argument for AND
Boolean operators must be surrounded by one or more separators, typically white space. For example,
the query p
eas&&carrots is not equivalent to the quer y peas && carrots; peas&&carrots is a
single word (& isawordcharacter).
Negation operators (- and !) are exceptions to this rule. They must be preceded by a separator, but they
need not be followed by a separator. For example, carrot-a6 is a single query word, but carrot
-a6,likec
arrot (- a6) , is equivalent to the Boolean expression carrot AND (NOTa6).
Nested Boolean query expressions
You can nest Bo olean query expressions using B oole an expressions as arguments of Boolean expressions.
To do this, enclose the nested expression in parentheses (()). For example, the following quer y searches
for documents containing bird,butnotgarden or stone:
bird AND (NOT (garden OR stone))
You must provide the same number of opening parentheses as closing parentheses a nd they must be
properly nested or an error m essage results. For exa m ple, the following queries result in an error message.
bird AND (NOT (garden OR stone): Missing right parenthesis at the end
bird AND) NOT (garden OR stone(): Improperly nested parentheses
For clarity, a lways use parentheses for nested query expressions.
Query expression examples
The following are examples of query expressions.
76
Query expression syntax a nd matching