HP Integrated Archive Platform manual Nested Boolean query expressions, Query expression examples

Models: Integrated Archive Platform

1 49
Download 49 pages 11.65 Kb
Page 44
Image 44

Boolean operators must be surrounded by one or more separators, typically white space. For example, the query peas&&carrots is not equivalent to the query peas && carrots; peas&&carrots is a single word (& is a word character).

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-a6is a single query word, but carrot -a6, like carrot (- a6), is equivalent to the Boolean expression carrot AND (NOTa6).

Nested Boolean query 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, but not garden or stone:

bird AND NOT (garden OR stone)

Query expression examples

The following are examples of query expressions.

44 Query expression syntax and matching

Page 44
Image 44
HP Integrated Archive Platform manual Nested Boolean query expressions, Query expression examples