- Introduced by
- George Boole and IT information retrieval practitioners
- Year
- 1847 (Boolean algebra); 1960s (database applications)
- Type
- Tool
- Family
- database-search-technique
What does it do?
Boolean search operators are logical functions (AND, OR, NOT) and parentheses used to combine and filter search terms in bibliographic databases, library catalogs and some search engines.
They are named after the mathematician George Boole (1815–1864), and their use in information retrieval dates from the 1960s, when bibliographic databases began to be searched electronically. Used carefully, they let a researcher state exactly which combinations of concepts a relevant record must contain, which is why they underpin the search strategies of systematic reviews.
The intuition behind the method
A single keyword such as 'depression' matches a very large number of records, most of which concern something other than the question at hand. Boolean operators specify how terms relate: AND requires both terms, OR accepts either, and NOT removes records containing a term. For example, '(depression OR anxiety) AND (adolescent OR teenager) NOT suicide' asks for records on either of two conditions in young people, excluding records that mention suicide. Each concept is usually written as a group of OR-ed synonyms, and the groups are joined with AND, so the structure of the string mirrors the structure of the question.
History
Boolean algebra was introduced by George Boole, who set out his logic in the 1847 book 'The Mathematical Analysis of Logic'. From the 1960s, as library catalogs and bibliographic databases became computerised, the same logical operators were adapted for information retrieval. They remain a standard query language in many bibliographic databases, although general web search engines use different matching and ranking methods. Controlled vocabularies such as MeSH and Emtree are often used alongside Boolean searching.
When to use it
Use Boolean operators when you search a bibliographic database such as MEDLINE, Embase, PsycINFO, CINAHL or Scopus, or a web search engine that accepts Boolean syntax, especially for systematic reviews, meta-analyses, scoping reviews and other searches that must be reproduced. They are also useful when a broad topic returns too many records to screen and you can name the concepts that define your question. Do not rely on them alone when the topic has no stable vocabulary, when you need to judge study quality or design (operators test only the presence of terms), or when the interface does not support the operators you need. Check which operators, field tags and proximity features your database supports before building a complex string.
Limitations and considerations
- Operators match character strings, not meaning: 'depression' also retrieves economics or geology records that use the word in another sense.
- Retrieval depends on indexing: a concept indexed under a controlled term (such as MeSH in MEDLINE or Emtree in Embase) is missed if the string uses only free-text words, and the reverse also holds.
- Field tags, truncation symbols, proximity operators such as NEAR/x and the handling of parentheses differ between interfaces, so a string that works in one database may need rewriting for another.
- Long strings with several nested groups are hard to check by reading; errors often show up only as unexpected result counts.
- The operators filter only by the presence or absence of terms. They say nothing about study design, quality or relevance, which must be judged during screening.
- Broader OR groups and extra synonyms increase sensitivity (fewer relevant records are missed) but reduce precision (more irrelevant records are retrieved), and extra AND clauses have the opposite effect. Systematic reviews usually prioritise sensitivity, so the trade-off is accepted deliberately, and the screening workload then limits how far precision can be pushed.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The structure of a question maps directly onto the string: one AND-joined block per concept, with OR-ed synonyms inside each block.
- The exact string can be copied into a report and rerun by another researcher, which is what makes a database search reproducible.
- Changing one operator at a time gives a traceable effect on the result count, so the reason for each change can be recorded.
- The core syntax (AND, OR, NOT, parentheses) is shared across most major bibliographic databases, so the basic skill transfers between them.
- In systematic reviews, expressing a question as explicit combinations of terms is what allows the retrieval to be audited and repeated.
Applications
- Systematic review of antidepressant efficacy: (depression OR major depressive disorder) AND (antidepressant OR selective serotonin reuptake inhibitor OR SSRI) AND (randomized controlled trial OR RCT) [narrowing to a specific study design].
- Scoping review of telehealth in rural settings: (telemedicine OR telehealth OR telenutrition OR telemental health) AND (rural OR remote OR underserved) NOT (urban OR metropolitan) [excluding urban contexts].
- Rapid evidence synthesis on COVID-19 vaccines: (COVID-19 OR coronavirus OR SARS-CoV-2) AND (vaccine* OR immunization) AND (efficacy OR effectiveness OR safety) [using truncation * to capture vaccine, vaccines, vaccination].
- Literature search on artificial intelligence in radiology: (artificial intelligence OR machine learning OR deep learning OR neural network*) AND (radiology OR medical imaging OR X-ray OR CT OR MRI) NOT (ultrasound) [excluding a specific imaging modality].
How it works
How it works
List the synonyms, spelling variants and controlled vocabulary terms for each concept in your question. For depression in children, the condition concept might include depression, depressive disorder, mood disorder and dysphoria, and the population concept might include child, adolescent, pediatric, youth and teenager. Decide which concepts must all be present (AND), which terms within a concept are alternatives (OR), and whether any unwanted context should be excluded (NOT), then group terms with parentheses so the intended order of operations is explicit.
Formula
Identify search terms (keywords, synonyms, controlled vocabulary terms) for each concept in your research question. Decide on logical relationships: which terms must all be present (AND), which are alternatives (OR), and which should be excluded (NOT).
Run the string in your target database and record the number of results and the first page of records. Check whether the count moves in the expected direction when you add an AND clause (narrower) or an OR synonym (broader). Read the first records for relevance: if most are off-topic, the logic or the terms are at fault, for example an OR group that admits a very general term or a NOT clause that removes a common word.
Formula
Validate your Boolean string by checking result counts: expect a progressive narrowing with AND (result count decreases) and broadening with OR (result count increases). Test multiple operators to verify logic and adjust for database-specific syntax.
Refine the string by changing one element at a time and watching the effect on count and relevance. If results are too few, broaden by replacing AND with OR for a related concept or by removing a NOT clause; if they are too many, add an AND concept or replace an OR group with a narrower term. Stop when the set is relevant and manageable for the screening capacity of your review; the acceptable size depends on your resources and protocol and is not a fixed standard. Record the final string exactly as run, with the database, search date, result count and any limits such as years, language or publication type, because this record is what makes the search reproducible.
Formula
Review retrieved results for relevance. If too few results, replace AND with OR or remove NOT clauses. If too many, add AND terms or replace OR with AND. Refine iteratively until results are manageable (typically 50–500 for detailed review) and relevant to your question.
Common pitfalls
- Using NOT to exclude an unwanted population, such as NOT animal to restrict results to human studies. NOT removes any record in which the word appears in the searched fields, including incidental mentions, so it can remove relevant papers. Check which records a NOT clause removes before relying on it.
- Omitting parentheses. 'depression OR anxiety AND children' may not mean '(depression OR anxiety) AND children'. Write the grouping explicitly, and do not assume the interface evaluates operators in a fixed order.
- Building one large OR group without testing intermediate counts, for example joining five or more condition synonyms in one step. Test each concept's group on its own before combining the groups, since an overly broad group can retrieve many tangential records.
- Assuming every change behaves as expected. Confirm the direction of each change by reading the count, because automatic term mapping in a database can alter how a term is expanded.
- Searching free text only. A string without controlled vocabulary misses articles indexed under a different term. Check the database thesaurus and combine its terms with free-text synonyms.
Frequently asked questions
What is the difference between AND and OR in Boolean search?
AND narrows results: both terms must be present. A search for 'depression AND anxiety' retrieves only articles mentioning both conditions. OR broadens results: at least one term must be present. A search for 'depression OR anxiety' retrieves articles on either condition. Use AND when combining different concepts (disease, population, intervention); use OR to group synonyms within a single concept. Typical structure: (term1 OR synonym1) AND (term2 OR synonym2).
When should I use NOT, and why do people warn against it?
NOT excludes records containing a term, which can be useful for removing a specific population (NOT 'animal' when studying humans) or an unwanted context. It is blunt, however: 'depression NOT bipolar' excludes any record mentioning bipolar disorder, even when the main focus is depression. Where the database offers controlled vocabulary for the population, such as a MeSH term for humans, it is usually safer to use that term with AND than to rely on NOT. Use NOT cautiously and check which records it removes.
What are truncation and wildcard operators, and how do they differ from Boolean operators?
Truncation (*) and wildcards (?) are not Boolean operators but often appear in the same search string. Truncation expands a term to all variations: 'psycholog*' retrieves psychology, psychological, psychologist, psychologists. Wildcard (?), used less commonly, substitutes a single character: 'wom?n' retrieves woman and women. These are useful for capturing word variants without writing multiple OR terms. Syntax varies: some databases use *, others use # or $. Check the database guide.
How do I know if my Boolean search is finding all relevant articles?
Complete certainty is not possible, but you can raise confidence in several ways. Searching more than one database is a common step; Sampson and colleagues examined whether meta-analysts should search Embase in addition to Medline. Combine controlled vocabulary with free-text terms, because some articles are indexed differently, and track citations forward and backward from known relevant papers. Hand-searching key journals and asking a medical librarian to review the strategy are also common steps. For systematic reviews, reporting guidance asks that the full search strategy be reported so others can rerun it. Checking whether a strategy retrieves a set of known relevant articles is a common test of sensitivity, though it is a separate and more specialised step from the Boolean syntax itself.
Related methods
Sources
Wilkinson, M. D., Sansone, S. A., Vandervalk, B., & Rocca-Serra, P. (2011). Evaluating information retrieval systems: a guide for researchers. Expert Review of Molecular Diagnostics, 11(2), 181–190.
Open publication referenceBramer, W. M., Rethlefsen, M. L., Murad, M. H., & Landhuis, E. (2016). When updating systematic reviews, how often should new searches be applied to increase the chance of finding relevant studies? Systematic Reviews, 5(1), 94.
Open publication referenceSampson, M., Barrowman, N. J., Moher, D., & Klassen, T. P. (2008). Should meta-analysts search Embase in addition to Medline? Journal of Clinical Epidemiology, 56(10), 943–955.
Open DOI reference