Boolean Operators – A Simple Guide With Examples

26.11.22 Finding sources Time to read: 4min

How do you like this article?

0 Reviews


Boolearn-Operators-Definition

Boolean operators are vital tools when working with sources for academic writing. These operators, namely AND, OR, and NOT, help refine your search in databases and search engines, enabling you to find the most relevant resources effectively. In this guide, we’ll dive into the practical use of Boolean operators to enhance your research and source management skills. Below, we explain how to use Boolean operators in searches. Please read on for examples of how Boolean operators work.

Boolean Operators – In a Nutshell

  • Boolean operators increase database search precision.
  • ‘AND’ narrows searches.
  • ‘OR’ widens searches.
  • Other operators look for word proximity.

Definition: Boolean operators

Boolean operators are logical connector words such as ‘and‘, ‘or‘, and ‘not‘. They make database searches more precise and save time by removing unsuitable results. These searches use Boolean strings, i.e., keywords joined with one or more logical operators.

Prevent Plagiarism
in Your Thesis
Make sure that your thesis is free from possible plagiarism!
To obtain a comprehensive plagiarism report in no more than 10 minutes, use the BachelorPrint Plagiarism Checker now. The plagiarism software will then detect and outline all citation errors in your thesis.

Boolean operators and how to use them

Using Boolean operators can significantly reduce or expand the number of records returned. The targeted results save time. Apart from research, the technique is valuable in investigation and reviews.

Boolean operator
Function
Example
AND Requires both keywords 'Vaccines in (Europe AND Asia)'
- selects results with both
OR Requires one or more terms 'Vaccines in (Europe OR Asia)'
- generates more results, selecting either continent.
Parentheses () Evaluates parenthesized terms first '(Smoking or vaping) and arteries'

NOT & AND NOT Exclude specified term(s) 'Mexico AND NOT city'

Asterisk * Look for alternative endings 'electr*'
Boolearn-Operators-AND-OR-NOT

Boolean Operator AND

Boolean Operator ‘AND‘ obtains results with two or more keywords. Both terms are in each result, so it narrows database searches. Thus, ‘dogs AND service animals’ would return information about guide dogs and police dogs, but not pet animals.

Boolean Operator OR

Boolean Operator ‘OR‘ returns at least one of the keywords, so it broadens a database search. ‘Ecology OR pollution’ would find results containing ecology (though not pollution), pollution (but not ecology), and both words in either order.

Boolean Operator Quotation Marks: ” “

Quotation marks specify the exact keywords contained within them. The search is more precise; results must include the phrase as a whole, i.e. the words together and in order. Searching for wild animals (without quotation marks) yields results with either word and both separately. In contrast, searching for “wild animals” returns articles with that exact phrase.

Boolean Operator Asterisk: *

We use the asterisk symbol to truncate a search word. The results contain variations of a root word.
Use the asterisk to find results that contain the keyword you entered and other words that begin with those letters. For instance, electr* would return for electronics, electrical, electricity, electrify, electrode, etc.

You can also use an asterisk at the beginning of a word. Results using ‘*electr*’ would also include hydroelectric, microelectronics, etc.

Boolean Operator Parentheses: ( )

Parentheses group keywords together. Database queries and search engines evaluate parenthesized Boolean expressions first, thus customizing the results.
In the above example, ‘(smoking or vaping) and arteries’ returns results containing: ‘smoking and arteries’, ‘vaping and arteries’, and ‘smoking, vaping & arteries’. However, it does not return ‘smoking or vaping’ when the word ‘arteries’ is absent.

More than one parenthesis is possible. Imagine you are looking for medicines or medical interventions for seizures and convulsions other than those due to epilepsy. The following search contains multiple brackets and all the Boolean operators:

(medic* OR intervention*) AND (seizures OR “seizure disorders” OR “convulsive disorders” OR convulsions) NOT epilepsy

How Boolean operators are used in databases

Search engines and database systems use Boolean operators slightly differently. They may require capitalized operators or use special punctuation.

Google’s advanced options increase accuracy by fine-tuning the keyword search.

  • We use’+‘ for AND operations, so ‘World War +2’ would focus results on the Second World War.
  • Conversely, we use the minus symbol ‘‘ instead of NOT to exclude undesired keywords.

Imagine you are organising a special event, reunion, or another get-together for a group of students. You could search LinkedIn and substitute your own subject and location(s) in the third and fourth terms of the following string:

linkedin.com/in AND Student AND Science AND (Nottingham or Leicester)

Computer programming languages also use Boolean operators.

C++ Fortran Pascal Scheme
&& .AND. and and
| | .OR. or or
! .NOT. not not

Proximity operators

Finally, we use proximity operators to filter database searches based on the proximity of one keyword to another. This technique increases the relevance of results.

The three proximity operators and their functions are:

Proximity Operator Function Example

NEAR (Nx) Results contain your chosen keywords within x words of each other, irrespective of sequence. 'Renewable N4 energy' searches for 'energy' appears within four words of 'renewable'.
Results might include 'renewable energy sources' and 'energy from environmentally friendly, renewable sources'.
WITHIN (Wx) Results contain your keywords within x words of each other, in the specified order. 'Renewable W4 energy' searches for 'energy' within four words after 'renewable'.
Results might include 'renewable and reliable energy sources' – but not 'energy from renewable sources' due to the reverse order.
SENTENCE Lists sentences in which two or more specified keywords occur. 'Research SENTENCE skills'
Lists sentences containing the words ‘research' and 'skills', such as 'This research covers the acquisition of second language skills.’

Database query formats vary; some may use a different notation to represent the above operators.

Print Your Thesis Now
Printing your thesis with BachelorPrint guarantees every Australian student to benefit from numerous advantages:
  • ✓ Free express delivery
  • ✓ Individual embossing
  • ✓ Selection of high-quality bindings

to printing services

FAQs

Boolean operators are simple words used as conjunctions to combine or exclude keywords in a search, resulting in better-focused results.

Boolean operators do both. Using ‘OR‘ usually widens results, whereas ‘AND‘ does the opposite.

Simpler queries use few Boolean operators, but you can use several for detailed searches with multiple conditions. Some search engine fields, query input lines, or programming language statements limit the number of characters.

This choice depends on whether you want any of the terms in the results or all of them.

An asterisk truncates a search word. The results contain any alternate endings found. Note: in Boolean searches, ‘*’ is not a multiplication symbol, unlike some programming languages.

From

Burcu Arslan

How do you like this article?

0 Reviews
 
About the author

Burcu Arslan recently earned her Bachelor's degree in Business Administration, concentrating on Human Resources, Market Research, Communication, and Health Economics. She began her career with a six-month internship as a content marketer at BachelorPrint and has since become a full-time employee. Drawing on her personal experiences as a student and her international background, Burcu possesses advanced skills in crafting authentic, student-friendly academic articles in English that cater to the needs of higher education learners.

Show all articles from this author
About
BachelorPrint | #1 Online Printing Service
For Australian Students

BachelorPrint is an online printing service specialised in printing and binding academic papers, theses, and dissertations. Offering a wide arrange of bindings and configurations, BachelorPrint aims to enable every Australian student to receive its desired binding. Additionally, BachelorPrint offers hundreds of educational articles on various topics regarding academic writing in its Study Guide, supporting students with writing their thesis or dissertation.


Our posts on other topics