Boolean Operators for Literature Searching
Boolean operators are the words AND, OR and NOT that tell a database how to combine your search terms. They decide whether a search returns a few precise records or thousands of loosely related ones.
This guide explains each of the Boolean operators with examples, shows how brackets, phrases and truncation work, gives six steps for building a search with an example at every step, includes the set equations behind the results and lists common mistakes.
- The operators: what AND, OR and NOT do, with examples.
- The method: six steps to build a search string and the symbols that support it.
- The checks: database differences, set arithmetic and common mistakes.
Key takeaways
- AND narrows a search, OR broadens it and NOT excludes terms.
- Use OR for synonyms inside brackets and AND to join different concepts.
- Add phrases, truncation and database subject headings to improve recall.
- Test the search against papers you already know and record every string.
What are Boolean operators?
They are logical connectors named after the mathematician George Boole.
- AND: records must contain all the terms joined by AND, so the result gets smaller.
- OR: records may contain any of the terms joined by OR, so the result gets larger.
- NOT: records containing the excluded term are removed.
- Where they work: almost every library database, search engines and many catalogues; see the overview of Boolean algebra.
- Capital letters: many databases, including PubMed, require the operators to be typed in capitals.
The three Boolean operators with examples
The figure summarises the operators. The table shows what each one does to the number of results.
| Operator | Effect | Example | Typical use |
|---|---|---|---|
| AND | Narrows | falls AND elderly | Join different concepts |
| OR | Broadens | elderly OR aged OR “older adults” | List synonyms of one concept |
| NOT | Excludes | stroke NOT children | Remove an unwanted topic, with care |
- Default behaviour: some databases treat a space as AND; others treat it as a phrase. Check the help page.
- Order of results: Boolean operators do not rank by relevance; they only include or exclude records.

Step-by-step guide to using Boolean operators
Follow these six steps. Each has an explanation and an example.
- Break the question into concepts. Write your question in a sentence and underline two to four main ideas. Each idea becomes one group in the search. Example: Does discharge education reduce readmission in heart failure? Concepts: heart failure; discharge education; readmission.
- List synonyms for each concept. Write alternative words, plurals, abbreviations and spellings. Add the database’s subject heading. Example: “heart failure” OR “cardiac failure” OR CHF.
- Join synonyms with OR. Put each concept’s synonyms inside brackets joined by OR, so that the group finds any of them. Example: (“heart failure” OR “cardiac failure” OR CHF)
- Join the concepts with AND. Combine the bracketed groups with AND so that every result covers all concepts. Example: (heart failure terms) AND (education OR counselling)
- Add phrases and truncation. Use quotation marks for phrases and an asterisk for word endings, and check how your database treats them. Example: “discharge education” OR educat*
- Test, adjust and record. Run the search, compare the results with papers you already know, adjust, and save the final string with the date. Example: 12 of 12 known papers found; string saved on 3 March.

Brackets, phrases and truncation
Operators need helpers to give correct results.
- Brackets: group synonyms so that the logic is read correctly. Example: (elderly OR aged) AND falls is not the same as elderly OR aged AND falls.
- Quotation marks: keep words together as a phrase. Example: “heart failure” finds the exact phrase.
- Truncation: an asterisk finds different endings. Example: nurs* finds nurse, nurses and nursing.
- Wildcard: a symbol replaces one letter to cover spelling variants. Example: wom?n finds woman and women.
- Nesting: brackets can sit inside brackets for complex searches.
Proximity operators
Proximity operators find terms close to each other, which can be more precise than AND and broader than a phrase.
| Database platform | Proximity syntax | Meaning |
|---|---|---|
| Ovid (MEDLINE, Embase) | adj3 | Within three words, in any order |
| EBSCO (CINAHL) | N3 | Within three words, in any order |
| Web of Science and Scopus | NEAR/3 or W/3 | Within three words |
| PubMed | Field-specific proximity for title and abstract | Check current PubMed help |
- Why use them: “patient adj3 education” finds patient education, education of patients and more.
- Check availability: not every database supports proximity searching.
The set arithmetic behind Boolean operators
Each operator is a set operation. The equations help you predict how many records a search will return.
- Check the maths: the OR total should never exceed the sum of the parts.
- Overlap matters: a large overlap means the concepts are closely linked.
- Use it to debug: if A AND B is larger than A, a bracket is misplaced.
A worked Boolean search example
The example below builds a search for the question: do nurse-led telephone calls reduce readmission after COPD discharge?
| Line | Search | Records |
|---|---|---|
| #1 | “chronic obstructive pulmonary disease” OR COPD OR emphysema | 61,000 |
| #2 | telephone* OR “phone call*” OR telemonitor* OR “telephone follow-up” | 78,500 |
| #3 | readmission* OR rehospital* OR “hospital readmission” | 54,200 |
| #4 | #1 AND #2 | 1,900 |
| #5 | #4 AND #3 | 240 |
- Record counts: are invented to show the pattern; real counts change with time.
- Why it works: each concept is a bracket of synonyms and the final line joins them.
- Build on this: see how to document searches in the literature search strategy guide.
How Boolean operators differ between databases
The idea is the same everywhere, but details change.
| Database | Notes |
|---|---|
| PubMed | Operators in capitals; use brackets; truncation needs at least four letters; quotation marks search the exact phrase |
| Ovid MEDLINE and Embase | Lines can be combined by number; use .ti,ab. for title and abstract |
| CINAHL (EBSCO) | Use field tags such as TI and AB; N3 for proximity |
| Scopus | Use TITLE-ABS-KEY(…); W/3 for proximity |
| Google Scholar | Supports quotation marks and OR in capitals; limited length; no truncation |
Always read the help page of the platform, and ask a librarian when syntax is unclear. See also the PICO framework for planning concepts.
Combining Boolean operators with subject headings
Controlled vocabulary improves recall because indexers apply it consistently.
- MeSH and Emtree: use the database’s headings for each concept. Example: “Heart Failure”[MeSH].
- Combine with free text: join heading and keywords with OR. Example: “Heart Failure”[MeSH] OR “heart failure”[tiab].
- Explode: include narrower terms where relevant.
- Check scope notes: be sure the heading means what you intend.
- Record both: report the heading and the free-text words in your methods.
Common mistakes with Boolean operators
Check your search against this list.
- Missing brackets: the logic changes. Example: group each set of OR terms.
- Using AND between synonyms: you remove records. Example: use OR for synonyms.
- Overusing NOT: relevant records are lost. Example: screen manually instead.
- Lower-case operators: some databases ignore them. Example: type AND, OR and NOT in capitals.
- Too many concepts: results become too few. Example: search two or three main concepts.
- No record of the string: the search cannot be repeated. Example: save every string and date.
For more on planning and reporting, read the PRISMA flow diagram guide or order help with your search.
Boolean operators in systematic reviews
Systematic reviews need high recall, so the way you use Boolean operators matters even more.
- Aim for sensitivity: include many synonyms with OR and keep the number of AND concepts small.
- Search the main concepts only: population and intervention are usually enough; outcomes are often left to screening.
- Avoid limits that hide records: language and date filters can remove relevant studies.
- Run the same logic everywhere: translate the search to each database and check the number of records.
- Report the strings: publish the full strings in an appendix, as the PRISMA-S guideline advises.
A Boolean search template you can copy
Replace the examples with your own concepts.
Template
(“concept 1 term A” OR “concept 1 term B” OR abbreviation) AND (concept 2 term A OR concept 2 term B*) AND (concept 3 term A OR “concept 3 term B“)
- Fill the brackets: one bracket for each concept.
- Check the logic: read the string aloud: any of these, and any of these, and any of these.
- Test it: search for three papers you know and confirm they appear.
Boolean operators in Google and web searching
The same logic helps with web searches for grey literature.
- Site search: add site:gov.uk or site:who.int to search one organisation.
- File type: add filetype:pdf to find reports.
- OR in capitals: Google needs OR in capitals; the minus sign works like NOT.
- Exact phrases: use quotation marks for names of reports.
- Record it: note the search, the date and the number of results you checked.
Practice exercises for Boolean operators
Try these exercises, then compare with the answers.
| Task | Answer |
|---|---|
| Find records about falls in elderly people | falls AND (elderly OR aged OR “older adults”) |
| Find records on either diabetes or obesity | diabetes OR obesity |
| Find records on stroke but not about children | stroke NOT children (or screen manually) |
| Find records on nursing in any ending | nurs* |
| Find a phrase | “patient safety” |
- Predict first: guess whether the number of results will go up or down before you search.
- Check with Venn diagrams: draw the sets to see what each operator does.
Order of operations and nesting
Databases read operators in a set order, which can surprise you.
- Without brackets: many databases process AND before OR, which can change meaning.
- With brackets: the part inside the brackets is processed first.
- Nested brackets: inner brackets are processed before outer ones. Example: ((a OR b) AND c) OR d.
- Line-by-line: in Ovid or EBSCO, build each concept on its own line and combine the line numbers.
- Check the translation: some platforms show how they interpreted the search; read it.
Practical tips for Boolean operators
These habits help you search faster.
- Build in a document: write the string in a text file, then paste it into the database.
- Add one concept at a time: check the number of results after each AND.
- Save searches: use the database’s history and export it.
- Learn from the results: read the first twenty titles and add terms that you find.
- Ask for a review: a librarian can check your logic and syntax.
Add these habits to your literature search strategy.
Frequently asked questions about boolean operators
What are Boolean operators?
Boolean operators are the connecting words AND, OR and NOT that you place between search terms to tell a database how to combine them. AND returns only records that contain all the terms, so it narrows a search. OR returns records that contain any of the terms, so it broadens a search and is used for synonyms. NOT removes records that contain a term, so it should be used carefully. They are named after George Boole, whose algebra of logic underlies them, and they work in most library databases.
When should I use OR instead of AND?
Use OR when words mean the same thing or nearly the same thing, because you want records that use any of them. For example, elderly OR aged OR older adults finds records for any of these terms. Use AND to join different concepts, such as falls AND elderly, because you want records that cover both ideas. A good search often has several groups of OR terms in brackets, joined to each other by AND. If your search returns too few records, check that you have not used AND between synonyms.
Why is NOT risky in a systematic review?
NOT removes every record that contains the excluded word, even when the record also covers your topic. For example, stroke NOT children would remove a study of adults and children that mentions children once, even though it includes relevant adult data. In systematic reviews the aim is high recall, so missing a relevant study is a serious problem. It is usually safer to leave NOT out and exclude irrelevant records during screening. If you must use it, test the effect by checking which records disappear.
Do Boolean operators work in Google Scholar?
Google Scholar supports AND, OR and quotation marks, but it has limits that make it unsuitable as the only source in a systematic review. Operators such as OR must be typed in capitals, the search string length is limited, there is no truncation symbol and the ranking of results is hidden. It can be useful for citation searching and for finding grey literature, and you can record the first 100 to 200 results. For a systematic search, rely mainly on subject databases with documented syntax and exportable records.
Need expert help? Our experienced writers can handle the search, screening and write-up for you. Place your order in two minutes, or read how a systematic literature review works first.
Systematic Literature Reviews
Need a systematic literature review?
PRISMA-aligned searching, screening, appraisal and synthesis, written for your protocol.