Searching: Mix AND, OR and NOT

Learn some useful search techniques, improve your search results and confidently undertake research using the Library Search or databases.

Nesting Boolean operators consists of combining multiple search elements within brackets into a comprehensive search query.

Once you've defined what keywords to search with, the order in which you place AND, OR, NOT and brackets can completely change the logic of the search.

Use brackets when mixing different Boolean operators

In maths, anything in brackets (parentheses) is read first in an equation. By using this concept in our search, we can nest search phrases to really make the search work as intended.

 

Nesting example: radiation AND (protection OR therapy)

radiation intersects protection and therapy

 

➡︎ The content of the brackets, "protection OR therapy" is processed first. The results for "protection" and for "therapy" are passed to "AND radiation" one at a time. The final results list documents including both "radiation protection" and "radiation therapy".

Another way to write this search is (radiation AND protection) OR (radiation AND therapy).

 

Precedence example: radiation AND protection OR therapy

If you remove the brackets, the lower rule of precedence applies: AND takes precedence over OR.

radiation intersects protection and whole therapy

 

➡︎ "radiation AND protection" is processed first, followed by "OR therapy". The results list documents including "radiation therapy" in addition to all documents including "therapy".

For more advanced nesting examples, continue to Advanced Search.