HP StorageWorks Reference Information Storage System V1.1 User Guide (February 2005)

LO
Chapter 6:
Query syntax and matching
Query expression syntax and matching
6-10 HP StorageWorks Reference Information Storage System User Guide, February 2005
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 6-11
)
. A query cannot consist solely of negative criteria.
You must provide the proper number of arguments for a Boolean operator, or
an error message will result: one argument for
NOT
(
-
,
!
), two arguments for
each of
AND
(
&&
) and
OR
. For example, these queries will each result in an
error message:
alpha NOT
– missing argument for
NOT
AND alpha
– missing argument for
AND
Boolean operators must be surrounded by one or more separators, typically
whitespace. For example, the query
peas&&carrots
is not equivalent to the
query
peas && carrots
;
peas&&carrots
is a single word (
&
is a word character).
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
Table 6-1: Boolean Query Expressions
Syntax Matches