2. Boolean Logic Searching: A Primer … “something about Boolean logic is counter-intuitive for many otherwise intelligent people.”
3. Boolean Logic Searching The Internet is a vast computer database which is searched according to the rules of computer database searching. Much database searching is based on the principles of Boolean logic. Boolean logic refers to the logical relationship among search terms, and is named for British-born Irish mathematician George Boole. On Internet search engines, the options for constructing logical relationships among search terms often modify traditional practices of Boolean searching (see Boolean Searching on the Internet tutorial, following this primer).
4. Boolean Operators Boolean logic consists of three logical operators: AND OR NOT Each operator can be visually described by using Venn diagrams The following slides illustrate how these three operators function.
5. ORlogicQuestion: I would like information about college. In this type of search, we will retrieve records in which AT LEAST ONE of the search terms is present. We are searching on the terms college and also university since documents containing either of these words might be relevant. college OR university
6.
7. the shaded circle with the word university representing all the records that contain the word “university.”
8. the shaded overlap area representing all the records that contain both “college” and “university.”college OR university
9. ORlogic OR logic is most commonly used to search for synonymous terms or concepts. Here is an example of how ORlogic works: ORlogic collates the results to retrieve all the unique records containing one term, the other term, or both of them.
10. ORlogicQuestion: I would like information about college. The more terms or concepts we combine in a search with OR logic, the more results we will retrieve. college OR university OR campus
12. ANDlogic Question: I'm interested in the relationship between poverty and crime. In this search, we retrieve records in which BOTH of the search terms are present. This is illustrated by the shaded area overlapping the two circles representing all the records that contain both the word “poverty” and the word “crime.” poverty AND crime Notice how we do not retrieve any records with only “poverty” or only “crime.”
14. ANDlogic Question: I'm interested in the relationship between poverty and crime. The more terms or concepts we combine in a search with ANDlogic, the fewerresults we will retrieve. poverty AND crime AND gender
16. NEAR: a restrictive AND In addition: a very few search engines make use of the proximity operator NEAR. A proximity operator determines the closeness of terms within the text of a source document. NEAR is a restrictive AND. The closeness of the search terms is determined by the particular search engine. Most search engines default to proximity searching.
17. Combined ANDand ORlogicQuestion: I want information about the behavior of cats. The use of parentheses in this search is known as forcing the order of processing. In this case, we surround the OR words with parentheses so that the search engine will process the two related terms as a unit. The search engine will use AND logic to combine this result with the second concept. Using this method, we are assured that the semantically-related OR terms are kept together as a logical unit. behavior AND (cats ORfelines)
18. NOTlogic Question: I want information about cats, but I don't want to see anything about dogs. This search retrieved records in which ONLY ONE of the terms is present, the one we have selected by our search terms. This is illustrated by the shaded area with the word cats representing all the records containing the word “cats.” cats NOT dogs No records are retrieved in the area overlapping the two circles where the word “dogs” appears, even if the word “cats” appears there too.
19. NOTlogic NOT logic excludes records from your search results. Here is an example of how NOTlogic works:
20. NOTlogic “cats are smarter than dogs” Be careful using NOT: the term you want may be present in an important way in documents that also contain the word you wish to avoid. For example, a Web page includes the statement “cats are smarter than dogs.” The search illustrated above would exclude this document from your results.
21.
22. Boolean Searching on the Internet When you use an Internet search engine, the use of Boolean logic may be manifested in three distinct ways: Full Boolean logic with the use of the logical operators Implied Boolean logic with keyword searching Boolean logic using search form terminology
24. 1. Full Boolean Logic with Logical Operators Few search engines currently offer the option to do full Boolean searching with the use of the logical operators. More often simpler methods of constructing search statements are used, specifically, implied Boolean logic and search form terminology. These methods are covered below.
25. 1. Full Boolean Logic with Logical Operators Experiment by constructing searches using Boolean logical operators. Try some of the search statements shown on the following slides. Compare results from various search engines. Keep in mind that the search engine might require that the Boolean operators be typed in CAPITAL LETTERS. Most search engines provide help pages which explain the kind of searching the site performs.
26. 1. Full Boolean Logic with Logical Operators Question: I need information about cats. Boolean logic:OR Search:catsORfelines Question: I'm interested in dyslexia in adults. Boolean logic:AND Search:dyslexiaANDadults Question: I'm interested in radiation, but not nuclear radiation. Boolean logic:NOT Search:radiationNOTnuclear
27. 1. Full Boolean Logic with Logical Operators Question: I want to learn about cat behavior. Boolean logic:AND, OR Search:behavior catsORfelines This example combines implied ANDlogic—designatedby the space between the word “behavior” and “cats”—with the use of the Boolean OR operator. The safest way to conduct this type of search is to use the advanced search page available on most search engine sites. This will be shown in option #3 below (search form terminology).
28. 2. Implied Boolean Logic with Keyword Searching keyword searchingrefers to a search type in which one enters terms representing the concepts wished to retrieve. Boolean operators are not used. implied boolean logicrefers to a search in which symbols are used to represent Boolean logical operators, and is so common in Web search engines that it can be considered a de facto standard.
29. 2. Implied Boolean Logic with Keyword Searching Question: I'm interested in radiation, but not nuclear radiation. Boolean logic:NOT Search:radiation -nuclear Notice the minus sign (-) in front of the word “nuclear.” In this type of search, the absence of a symbol is also significant, as the space between keywords defaults to either OR logic or AND logic.
30. 2. Implied Boolean Logic with Keyword Searching Question: I need information about cats. Boolean logic:OR Search: [None] There are probably no general search engines on the Web that interpret the space between keywords as the Boolean OR. Rather, the space between keywords is interpreted as AND. To do an OR search, choose either Full Boolean Logic(#1 above) or Search Form Terminology (#3 below).
31. 2. Implied Boolean Logic with Keyword Searching Virtually all general search engines on the Internet default to AND logic. Question: I'm interested in dyslexia in adults. Boolean logic:AND Search:dyslexia +adults or (and usually), Search:dyslexia adults (space implies AND)
32. 2. Implied Boolean Logic with Keyword Searching Question: I want to learn about cat behavior. Boolean logic:AND, OR Search: [none] As noted previously, a space between keywords implies AND; and generally, only use of full Boolean logic retrieves an OR search.
33. 3. Boolean Logic Using Search Form Terminology Many search engines offer an advanced search page with a search form which allows the user to choose the Boolean operators from a menu. Usually the logical operator is expressed with substitute terminology rather than with the operator itself.
34. 3. Boolean Logic Using Search Form Terminology Question: I need information about cats Boolean logic:OR Search:Each result must/should contain one, all, or a combination of subject keywords Question: I'm interested in dyslexia in adults. Boolean logic:AND Search: Each result must/should contain both/all the subject keywords.
35. 3. Boolean Logic Using Search Form Terminology Question: I'm interested in radiation, but not nuclear radiation. Boolean logic:NOT Search:Each result must not/should not contain any of the undesired keywords. Question: I want to learn about cat behavior. Boolean logic:AND, OR Search:Each result must/should contain the specific combination of keywords, if search form allows multiple search logic.
37. Additional Resources “Basic Search Tips and Advanced Boolean Explained.” A two-page guide with examples prepared by Joe Barker.http://www.lib.berkeley.edu/TeachingLib/Guides/Internet/Boolean.pdf “Using AND, OR, and NOT (Boolean Operators).” Mathewson-IGT Knowledge Center, University of Nevada, Reno. An example of Boolean usage in a library online catalog. http://www.knowledgecenter.unr.edu/help/using/booltips.aspx The Boolean Machine A tool for visualizing the effects of Boolean operators on keyword searches, […] created to teach the importance of Boolean operators in effective search strategies” created by Rockwell Schrock. http://kathyschrock.netrbs3k/boolean Boolify. An online educational and practical tool for Internet searching using drag-and-drop graphic/visual interface rather than text/type. http://boolify.org/help.php