Definition · Plain-language
Boolean operators
Boolean operators are simple logical terms — AND, OR, and NOT — used to connect search keywords in database queries to widen, narrow, or refine research results.
The step most authors miss
Doing CRediT right? Don’t stop at the statement.
A CRediT statement credits you inside one paper. The recognition CRediT was built for happens when those roles are tied to you, persistently. Sign in with your ORCID — free — and claim your CRediT contributions on casrai.org, the home of the standard. They become a verified, portable part of your identity, not a line that disappears into one PDF.
Free: claim your contributions, then export a journal-ready CRediT statement, schema.org structured data, JATS XML, CSV or BibTeX — and preview your public profile. A membership publishes that profile publicly and verifies the journals you serve.
Logic and database filtering
Boolean search logic relies on set theory to define relationships between keywords. When performing a search in academic databases like PubMed, Scopus, or Web of Science, using these operators tells the search engine how to intersect the datasets of search results. For example, querying diabetes AND insulin returns only the overlap where both terms appear, reducing clutter and focusing the literature search. Understanding how the search engine processes these sets allows researchers to build highly targeted search strings, which is a requirement for conducting rigorous systematic reviews and mapping existing evidence in a structured manner. This systematic approach to database filtering is a core skill for any researcher conducting evidence-based literature syntheses.
The roles of AND, OR, and NOT
Each operator has a specific function. AND is used to connect different concepts, narrowing the search (e.g., qualitative AND NVivo). OR is used to connect synonyms or alternate spellings, broadening the search (e.g., adolescent OR teenager). NOT is used to exclude specific terms that are causing irrelevant results, though it must be used with caution to avoid accidentally filtering out useful records. By combining these three operators, researchers can create a balanced search strategy that retrieves all relevant literature without overwhelming the analyst with thousands of off-topic citations, improving literature retrieval. By tailoring these operator strings to the specific indexer requirements, scholars can build search queries that are both comprehensive and precise.
Nesting and query order of operations
Complex search queries require parentheses to group terms, a practice known as nesting. Databases read search terms in a specific order of operations (typically NOT, then AND, then OR). By using parentheses, researchers can control the logic: for example, (depression OR anxiety) AND therapy ensures that the search engine finds either mental health condition first before filtering the results by the treatment term. Failing to use nesting properly can lead to logical errors, where the database returns irrelevant papers because it processed the OR operators independently, leading to inaccurate reviews. This structural nesting is a standard protocol in Cochrane systematic reviews to ensure that search histories remain fully reproducible for external audits.
Key facts
At a glance
- Derived from the algebraic logic system developed by mathematician George Boole
- AND narrows searches by requiring all connected terms to be present
- OR broadens searches by returning results containing any of the terms
- NOT excludes specific keywords to eliminate irrelevant search results
- Requires parentheses (nesting) to organise complex multi-term queries
- Forms the structural foundation of systematic reviews and search strings
Common misconceptions
What people often get wrong
Often heard: Using the AND operator will broaden your search because you are adding more words.
Actually: AND actually narrows your search because it requires all terms to be present in every result, thereby shrinking the set of matching documents.
Often heard: All database search engines treat Boolean operators as case-insensitive.
Actually: Many academic search engines require Boolean operators to be written in capital letters (AND, OR, NOT) to distinguish them from standard prose.
Common questions
FAQ
What is nesting in a search query?+
Nesting is the use of parentheses to group keywords connected by OR, so the database treats them as a single concept before combining them with other terms using AND or NOT. For example, "(dog OR canine) AND behaviour".
Why is the NOT operator considered risky in research searches?+
The NOT operator can accidentally exclude highly relevant articles if the author happened to mention the excluded term in passing. For instance, searching for "cloning NOT human" might exclude a paper focusing on animal cloning that mentions human implications in its discussion.
Going deeper







