| Basic Boolean Search Operators AND means "I want only results that contain both words." OR means "I want results that contain either word." NOT means "Exclude all results containing a specific word." ( ) means "Execute the operator inside parenthesis first." |
alien![]() Venn diagrams are useful for illustrating Boolean Searches. In this example the user conducted a search for alien. This is represented by the tan shaded area. Results would contain information with the word alien. |
alien AND mars![]() Results containing information on both alien and mars |
alien OR mars![]() Results containing information on either alien or mars |
alien NOT mars![]() Results containing information on alien not mars |
alien OR mars AND green![]() Lets pretend there are many types of aliens but we are only interested in green ones on Mars. alien OR mars would return too many results on just the planet Mars or aliens in general. The more specifc AND would also still be too broad. It might seem logical that since we are interested green aliens on Mars a search like the example shows, alien OR mars AND green would be the solution. To some extent this will work but there are problems here. The search does not read Boolean operators from left to right but instead reads the mars AND green operator first. If you study the shaded area here you may have noticed the result you intended should look quite different with alien and mars fully shaded at the top and green appearing like it is. As you can see, using operators in this way can lead to unwanted search results. See the next example >> |
As you can see from the example above (alien OR mars) AND green , produces a completely different result since nesting an operator inside ( ) means the OR operator will be executed first. Does this produce better search results than the last example? It does if you are interested in an equal distribution of alien and mars related infomration that contain the word green. In the last example alien AND mars AND green would probably be the best way to narrow the search results to more relevant information. TIP: Many popular search engines like Google will treat any blank space between keywords as AND. So instead of writing alien AND mars AND green, you could simply enter alien mars green. |