HP StorageWorks Reference Information Storage System V1.0 User Guide (May 2004)
Query Expression Examples Chapter 5:
Query Syntax and Matching
HP StorageWorks Reference Information Storage System User Guide, April 2004 5-13
Query Expression Examples
Here are some examples of query expressions, with references to the pertinent
syntax documentation.
Table 5-2: Query Expression Examples
Query Expression Finds Documents With . . . Reference(s)
peace OR quiet Either peace or quiet, or both, in
either order.
Boolean Query
Expressions
, on
page 5-10
peace quiet
peace AND quiet
peace && quiet
Both peace and quiet, in either
order.
Boolean Query
Expressions
, on
page 5-10
peace&&quiet The single word peace&&quiet.
Boolean Query
Expressions
, on
page 5-10
peace or quiet Both peace and quiet, in either
order. This is the same as the
query peace quiet. The word or is
a stop word because it is
lowercase, and therefore, it is
ignored. The OR operator must
be uppercase.
Boolean Query
Expressions
, on
page 5-10
not quiet The word quiet. This is the same
as the query quiet. The word not
is a stop word because it is
lowercase, and therefore, it is
ignored. The NOT operator must
be uppercase.
Boolean Query
Expressions
, on
page 5-10
NOT quiet Illegal. A query cannot be purely
negative and must have some
positive expression.
Boolean Query
Expressions
, on
page 5-10
NOT NOT quiet Illegal. Parentheses are needed:
NOT (NOT quiet).
Boolean Query
Expressions
, on
page 5-10
peace & quiet The three words peace, &, and
quiet, in any order. & is a word
character. The AND operator is
implied.
Word Characters
, on
page 5-3
and
Boolean
Query Expressions
,
on page 5-10