HP StorageWorks Reference Information Storage System V1.5 User Guide (T3559-96045, November 2008)

Boolean operators must be surrounded by one or more separators, typica lly white spa ce. For example,
the query peas&&carrots is not equivalent to the query 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,likecarrot (- a6), is equivalent to the Boolean expression carrot AND (NOTa6).
Nested Boolean query expressions
You can nest Boolean query expressions using Boole an expressions as arguments of Boolean expressions.
To do this, enclose the nested expression in parentheses (()). For example, the following query searches
for documents containing bird,butnotgarden or stone:
bird AND (NOT (garden OR stone))
You must prov
ide the same number of opening p arentheses as closing pa rentheses and they must be
properly nes
ted or an error message results. For example, 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
, always use parentheses for nested query expressions.
Query expression examples
The following are examples of query expressions.
54
Query expression syntax and matching