Searching with Boolean Operators

A Boolean search of PDF documents provides more search options by letting you combine search criteria in a clearly defined way (using logical operators). It applies only when multiple documents are searched; it does not apply when searching by patterns or masks. When searching with the new interface for multiple search words or phrases, an OR search is performed; that is, each occurrence of either search string will be reported. This means Boolean operators are no longer needed to do OR-type searches. AND-type searches (where both strings must be present, so fewer results are generated) can only be done with Boolean operators.  

 

To use a Boolean query in a multiple-document search

  1. Open the Search dialog box.

  2. Choose Select Index from the Look In drop-down list, select an index in the Index Manager dialog box and click OK.

  3. Click >> Advanced and choose Boolean query in the Match drop-down list.

  4. Type the query for the search terms, using Boolean operators and syntax.

  5. Click Search. The results appear  in the bottom part of the Search dialog box.

  6. Click an entry in the Result list box to display its page with the search result highlighted. The number of occurrences appears bottom-right in the Result list box.

Commonly used Boolean operators

  • AND (&): Put this 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 ( | ): Put this 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 (^): Put this between two words to find all documents containing either word, but not containing both.

  • NOT (~): Put this 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 Nuance’ to find all documents that contain the word Invoice but do not contain the word Nuance.

  • 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 parts in the diagrams show which occurrences will be found.

 

Operator

Symbol

Examples

Diagram

AND

&

A AND B
A & B

PDF Converter vd a and b Searching with Boolean Operators

OR

|

A OR B

A | B

PDF Converter vd a or b Searching with Boolean Operators

EXCLUSIVE OR

^

A EXCLUSIVE OR B
A ^ B

PDF Converter vd a exc or b Searching with Boolean Operators

NOT (alone)

~

NOT A
~
A

PDF Converter vd not a Searching with Boolean Operators

NOT (combined)

~

A NOT B
A ~ B

PDF Converter vd a not b Searching with Boolean Operators

 

In the case NOT A, the green area represents all the files included in the search.
 

Note

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

 

Searching with Boolean Operators