HP StorageWorks Reference Information Storage System V1.0 User Guide (May 2004)

Query Expression Syntax and Matching Chapter 5:
Query Syntax and Matching
HP StorageWorks Reference Information Storage System User Guide, April 2004 5-11
represents a word, fuzzy word, word sequence, or another Boolean query
expression (nested in parentheses – see
Nested Boolean Query Expressions
,
on page 5-12).
Note:
The second alternative syntax for
AND
indicates that
AND
is the
default connective in query expressions. You do not need to
supply
AND
explicitly. It is assumed if neither
AND
nor
OR
is used
explicitly. For example, the query
peace quiet
is equivalent to the
query
peace AND quiet
.
A
NOT
expression must be combined, using
AND
or
OR
, with another
expression other than
NOT (see
Nested Boolean Query Expressions
, on
page 5-12
)
. A query cannot consist solely of negative criteria.
Table 5-1: Boolean Query Expressions
Syntax Matches
NOT
exp
alternative syntax: -
exp
alternative syntax: !
exp
all documents that do not match
exp
exp1
OR
exp2
all documents that match either
exp1
or
exp2
exp1
AND
exp2
alternative syntax:
exp1
&&
exp2
alternative syntax:
exp1
exp2
all documents that match both
exp1
and
exp2
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