HP Reference Information Storage System Version 1.6 User Guide revision 2 (T3559-90810, August 2007)

Nested Boolean quer y expressions
You can nest Boolean query expressions using Boolean expressions as arguments of Boolean expressions.
For example, the following query searches for documents containing bird,butnotgarden or stone:
bird AND NOT (ga
rden OR stone)
Query expression examples
The following are examples of query expressions.
Table 11 Query expression examples
Quer y expression
Finds documents with ...
peace OR quiet
Either peace o
r quiet,orboth,ineitherorder.
peace quiet
peace AND quiet
peace && quiet
Both p eace and quiet,ineitherorder.
peace&&quiet
Thesinglewordpeace&&quiet.
peace or quiet
The three words peac e, or,andquiet, in any order. or is a word. The
OR operator must be uppercase.
not quiet
The words not and quiet. The NOT operator must be uppercase.
NOT quiet
Illegal. A query cannot be purely negative and must have some positive
expression.
peace & quie
t
The three wo
rds peace, &,andquiet,inanyorder. & is a word
character
.TheANDoperatorisimplied.
peace | quiet
Both peace and quiet. | is a separator. The AND operator i s implied.
peace AND NOT quiet
peace && -quiet
-quiet && peace
The word peace but not quiet.
peace AND quiet OR
silence
Avoid using. Parentheses are needed: peace AND (quiet OR
silence).
quiet OR silence AND
peace
Avoid using. Parentheses are needed: quiet OR (silence AND
peace).
pea*
Any word starting with pea such as: pea, peas, peace ,orpeach.
pea*c*
Words su
ch as: peace, peach,orpeaches.
"peace quiet"
Both peace and quiet, i n that order, with no intervening words.
Examples: peace quiet or peace $^%+{} quiet.
"peace quiet"~1
Both peace and quiet, in that order, separated by at most one word.
Examples: p eace and quiet; peace, now;%^$ quiet; peace quiet;or
peace george quiet.
peace~
Words similar to peace such as: peaches, piece, place,orplate.
(peace quiet)
AND
NOT "peace quiet"
Both peace and quiet,butnotpeace followed immediately by quiet.
Examples: quiet peace; quiet blue peace;orpeace, water, land, quiet.
38
Query expression syntax and matching