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.

Ensure Originality in Your Thesis
Double-check that your thesis is free from unintentional plagiarism!
In only 10 minutes, you can receive your easy-to-follow plagiarism report using the BachelorPrint Plagiarism Checker. All citation errors in your thesis will be detected and listed by the plagiarism software.

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 parentheses 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 organizing 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
BachelorPrint as an online printing service offers
numerous advantages for Canadian students:
  • ✓ 3D live preview of your configuration
  • ✓ Free express delivery for every order
  • ✓ High-quality bindings with individual embossing

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 | The #1 Online Printing Service
For Canadian Students

As a leading expert in the printing and binding of academic papers, theses, and dissertations, the BachelorPrint online printing service furnishes a diverse range of bindings and configuration options. BachelorPrint’s goal is to elicit a proud smile on every single Canadian student’s face, as they hold their ideal binding in their hands.<br/>Moreover, BachelorPrint provides numerous educational articles on insightful subjects related to academic writing in their Study Guide, assisting students during the process of writing their thesis or dissertation.


Cite This Article

Bibliography

Arslan, B. (2022, November 26). Boolean Operators – A Simple Guide With Examples. BachelorPrint. https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/ (retrieved 21/12/2024)

In-text citation

Parenthetical
(Arslan , 2022)
Narrative
Arslan (2022)

Bibliography

Arslan, Burcu. 2022. "Boolean Operators – A Simple Guide With Examples." BachelorPrint, Retrieved November 26, 2022. https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/.

In-text citation

Parenthetical
(Arslan 2022)

Bibliography

Burcu Arslan, "Boolean Operators – A Simple Guide With Examples," BachelorPrint, November 26, 2022, https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/ (retrieved December 21, 2024).

Footnotes

Short note
Arslan, "Shortened title."

Bibliography

Arslan, Burcu: Boolean Operators – A Simple Guide With Examples, in: BachelorPrint, 26/11/2022, [online] https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/ (retrieved 21/12/2024).

Footnotes

Full note
Arslan, Burcu: Boolean Operators – A Simple Guide With Examples, in: BachelorPrint, 26/11/2022, [online] https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/ (retrieved 21/12/2024).
Direct quote
Arslan, 2022.
Indirect quote
Arslan, 2022.

Bibliography

Arslan, Burcu (2022): Boolean Operators – A Simple Guide With Examples, in: BachelorPrint, [online] https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/ (retrieved 21/12/2024).

In-text citation

Direct quote
(Arslan, 2022)
Indirect quote
(Arslan, 2022)
Narrative
Arslan (2022)

Bibliography

Arslan, Burcu. "Boolean Operators – A Simple Guide With Examples." BachelorPrint, 26/11/2022, https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/ (retrieved 21/12/2024).

In-text citation

Parenthetical
(Arslan)
Narrative
Arslan

Bibliography

Number. Arslan B. Boolean Operators – A Simple Guide With Examples [Internet]. BachelorPrint. 2022 [cited 21/12/2024]. Available from: https://www.bachelorprint.com/ca/working-with-sources/boolean-operators/


New articles