Applying Boolean Logic

Computers organize sets of keywords.  Use "And, Or, or Not" to control the results you want. For example, think of the concept chocolate, and the concept cake.

AND

Search the word chocolate and the word cake: "chocolate and cake".

Boolean search "and"

Both words have to be in the document found. Results: documents about "chocolate" and about "cake". Be careful: a document could also be about chocolate icing on a white cake. Both words are inside the document, but we didn't ask the computer to put the words right next to one another.

Boolean "and"

The gray would be the outcome of the search for "chocolate and cake".

OR

Search the word chocolate and the word cake: "chocolate or cake".

Boolean search "or"

Either the word chocolate or the word cake must be in the document found. It makes no difference which word is found. Results: documents about "chocolate covered ants, chocolate cake, chocolate Labradors, chocolate candy, carrot cake, angel food cake..."

Boolean "or"

The blue would be the outcome of the search for both "chocolate or cake".

NOT

Search the word chocolate and the word cake: "chocolate not cake".

Boolean search "not"

I do not like cake, so...search the word "chocolate" but do not give me any documents about cakes! Only the word "chocolate" needs to be in the document found. Results: chocolate icing, chocolate candy, but not chocolate cake!

Boolean "not"

The light gray would be the outcome of the search for "chocolate not cake".

myPCT Login

Pennsylvania College of Technology
One College Avenue
Williamsport, PA 17701

570-326-3761
800-367-9222

© 1995 Pennsylvania College of Technology. Penn College® and degrees that work® are registered in the U.S. Patent and Trademark Office.