Boolean operators

Important You cannot do wildcard searches using asterisks (*) or question marks (?) when searching index files.

Commonly used Boolean operators

  • AND (&): Insert between two words to find only documents that contain both words. This narrows the search, since documents containing only one of the words will not be found.

  • OR ( | ): Insert between two words to find all documents containing either word. This gives a wider search, since more documents are likely to fulfill this condition. Documents containing both words will also be found.

  • EXCLUSIVE OR (^): Insert between two words to find all documents containing either word, but not containing both.

  • NOT (~): Insert before a search word to exclude all documents that contain the word. You can combine this with a positive search request, for example: type Invoice NOT Kofax to find all documents that contain the word Invoice but do not contain the word Kofax.

  • Use parentheses to specify the order of operations. For example, type:

    Europe & (Paris | Brussels)

    First, there is an OR search on Paris and Brussels, and then an AND search on the result with Europe. So it finds all documents with either Paris or Brussels, but then retains only those that also contain Europe.

In the following examples, A and B represent search words or strings. The green area in the diagrams shows which occurrences are found.

Operator Symbol Examples Diagram
AND &

A AND B

A & B


AND diagram
OR |

A OR B

A | B


OR diagram
EXCLUSIVE OR ^

A EXCLUSIVE OR B

A ^ B


EXCLUSIVE OR diagram
NOT (alone) ~ NOT A ~ A
NOT (alone) diagram
1
NOT (combined) ~

A NOT B

A ~ B


NOT (combined) diagram
1 The green area represents all the files included in the search.