Boolean Operators | Quick Guide, Examples & Tips

Boolean operators are words and symbols, such as AND or NOT, that let you expand or narrow your search parameters when using a database or search engine. When you search using these operators, it is known as a Boolean search.

You can use Boolean operators such as AND, OR, and NOT alongside keywords to create a Boolean string that will refine your search to find the most relevant results and sources.

Boolean operators

How to use Boolean operators

Knowing how to use Boolean operators effectively can save you a lot of time and help you to find useful sources, determine the relevance of your research topic, and create strong research questions. It’s also very helpful when you’re working on a literature review or systematic review.

Useful Boolean operators
Boolean operator Function Example
AND Provides results that contain both or all keywords paradigm AND syntagm
OR Provides results that contain either keyword meteor OR meteorite
NOT or AND NOT Provides results that contain the first keyword but not the second football NOT soccer
Quotation marks “” Provides results with the exact phrase “Newtonian mechanics”
Parentheses () Allows you to group together keywords and control the order in which the terms will be searched (rural OR urban) AND sociology
Asterisk * Provides results that contain a variation of the keyword Develop*

This will return results containing words such as “development,” “developer,” and “developing.”

AND

AND will provide search results containing both or all of your keywords.

Use this when you want results that contain two or more specific keywords.

Example: Using AND
Anthropocene AND climate change AND ecosystem

OR

OR will provide search results containing at least one of your keywords.

Use this when you want results that contain at least one (though not necessarily both) of your chosen keywords.

Example: Using OR
horticultural OR agricultural

NOT

NOT will provide search results containing the first of your keywords but not the second. Make sure to put your keywords in the correct order when using NOT, as the search results provided will exclude the latter keyword.

Use this when you want results that contain one specific keyword but not another.

Example: Using NOT
centrifugal NOT centripetal

Parentheses: ()

Parentheses allow you to group together keywords and control the order in which the terms will be searched, just like in a mathematical statement. Keywords and Boolean operators within parentheses will be searched first, followed by keywords outside parentheses.

For example, the combination shown below will provide results that are initially filtered to contain at least one of “id” or “ego,” and then further refined to also include “developmental.”

Example: Using parentheses
(id OR ego) AND developmental

You can also use more than one pair of parentheses. The search will filter results based on the innermost parenthetical keywords first, followed by the keywords in outer parentheses, and finally the keyword(s) outside parentheses.

Example: Using multiple sets of parentheses
((id OR ego) AND Lacan) AND developmental

Quotation marks: “”

Quotation marks will provide search results containing the exact keyword(s) contained within.

Use this when you want results that contain a precise keyword or keywords.

Example: Using quotation marks
“Holocene epoch”

Asterisk: *

An asterisk will provide search results containing variations of a root word.

Use this when you want results that contain the keyword that you entered or other words that begin with those letters.

Example: Using an asterisk
form*

This will provide results including variations of the chosen word such as “formal” and “formation.”

Each database or search engine may use Boolean operators in slightly different ways. Therefore, it is important to check how Boolean operators work in the particular database or search engine you’re using.

Note: Many databases and search engines also offer an “advanced search” option that lets you choose the most relevant Boolean operators from a drop-down list, like in the example from JSTOR below.
JSTOR advanced search

Prevent plagiarism. Run a free check.

Try for free

Proximity operators

Proximity operators are similar to Boolean operators. They let you filter results based on the proximity of one keyword to another.

Proximity operators include NEAR (Nx), WITHIN (Wx), and SENTENCE.

Useful proximity operators
Proximity operator Function Example
NEAR (Nx) Provides results that contain your chosen keywords within x words of each other, regardless of the order they occur in Solar N5 energy will provide results in which “energy” appears within five words of the word “solar.” This will include results such as “solar energy,” and “energy produced by solar panels.”
WITHIN (Wx) Provides results that contain your chosen keywords within x words of each other in the order you entered them Solar W5 energy will provide results in which “energy” appears within five words of the word “solar” but will exclude results in which the order is reversed, such as “energy produced by solar panels.”
SENTENCE Provides results in which two or more keywords occur in the same sentence Learning SENTENCE environment will provide results in which “learning” and “environment” appear in the same sentence, such as “a supportive environment is essential to the learning process.”

Note: Not all databases use proximity operators. Be sure to check the search operations of the database you are using.

Other interesting articles

If you want to know more about ChatGPT, AI tools, citation, and plagiarism, make sure to check out some of our other articles with explanations and examples.

Frequently asked questions about Boolean operators

A Boolean search uses specific words and symbols known as Boolean operators (e.g., AND, OR) alongside keywords to limit or expand search results. Boolean searches allow you to:

  • Prioritize keywords
  • Exclude keywords
  • Search exact keywords
  • Search variations of your keywords
What are Boolean operators and how do I use them?

Boolean operators are specific words and symbols that you can use to expand or narrow your search parameters when using a database or search engine.

The most common Boolean operators are AND, OR, NOT or AND NOT, quotation marks “”, parentheses (), and asterisks *.

Each Boolean operator has a unique function. For example, the Boolean operator AND will provide search results containing both/all of your keywords.

What are proximity operators and how do I use them?

Proximity operators are specific words used alongside your chosen keywords that let you specify the proximity of one keyword in relation to another.

The most common proximity operators include NEAR (Nx), WITHIN (Wx), and SENTENCE.

Each proximity operator has a unique function. For example, Nx allows you to find sources that contain the specified keywords within a set number of words (x) of each other.

How do I search research databases efficiently?

When searching for sources in databases, think of specific keywords that are relevant to your topic, and consider variations on them or synonyms that might be relevant.

Once you have a clear idea of your research parameters and key terms, choose a database that is relevant to your research (e.g., Medline, JSTOR, Project MUSE).

Find out if the database has a “subject search” option. This can help to refine your search. Use Boolean operators to combine your keywords, exclude specific search terms, and search exact phrases to find the most relevant sources.

Cite this Scribbr article

If you want to cite this source, you can copy and paste the citation or click the “Cite this Scribbr article” button to automatically add the citation to our free Citation Generator.

Ryan, E. (2023, May 31). Boolean Operators | Quick Guide, Examples & Tips. Scribbr. Retrieved March 18, 2024, from https://www.scribbr.com/working-with-sources/boolean-operators/

Is this article helpful?
Eoghan Ryan

Eoghan has a lot of experience with theses and dissertations at bachelor's, MA, and PhD level. He has taught university English courses, helping students to improve their research and writing.