Boolean Operators (And, Or, Not)

Boolean logic defines logical relationships between terms in a search. The Boolean search operators are and, or and not. You can use these operators to create a very broad or very narrow search.

The following table illustrates the operation of Boolean terms:

And

Or

Not

Each result contains all search terms.  

Each result contains at least one search term.

Results do not contain the specified terms.

The search heart and lung finds items that contain both heart and lung.

The search heart or lung finds items that contain either heart or items that contain lung.

The search heart not lung finds items that contain heart but do not contain lung.

If you use parentheses with the Boolean operators, the terms inside the parentheses are processed first.