03 · What You Need to Know
How Parentheses Control Boolean Search Logic
Start With Concept Groups, Not Punctuation
Parentheses make more sense when you first think about what your terms represent.
Suppose you are searching for research on depression among adolescents. You identify two possible expressions for the population:
Those terms are alternative ways of representing the same search concept. You want a record to qualify through either expression, so they can be connected with OR:
adolescent OR teenager
Depression is a different concept. If both the population concept and the depression concept need to be represented, the two concepts can then be connected with AND.
Cochrane's current guidance follows this general structure for bibliographic searching: alternative terms within a concept are normally combined with OR, while different concept sets are then combined with AND.
Parentheses make those concept sets explicit.
Parentheses Turn Several Terms Into One Logical Group
The population portion can be grouped:
Now add depression:
This is the practical purpose of parentheses: they preserve the relationship among terms when several Boolean operations appear in one expression.
Without Parentheses, Operator Precedence Can Change the Meaning
Databases need rules for deciding which operation to evaluate first when several Boolean operators appear together. These rules are commonly described as operator precedence or order of operations.
Consider again:
adolescent OR teenager AND depression
If the search system evaluates AND before OR, the expression is effectively interpreted as:
adolescent OR (teenager AND depression)
That is not the same as:
(adolescent OR teenager) AND depression
adolescent OR (teenager AND depression)
A record can qualify merely through adolescent, even if it does not satisfy the depression condition.
(adolescent OR teenager) AND depression
A record must satisfy depression and must also satisfy at least one of the two population alternatives.
The same words are present, but the logical requirement is different.
Parentheses Are the Boolean Equivalent of Showing Your Work
You may remember parentheses from arithmetic:
(2 + 3) × 4
is different from an expression in which the operations are evaluated in another order. Boolean searching uses the same basic idea. Parentheses explicitly tell the system which operation belongs together.
This analogy is useful, but the database is not performing arithmetic. It is combining sets of records.
If A represents records containing one search expression and B represents another, parentheses define which sets should first be combined before the resulting set participates in the next Boolean operation.
OR Groups Usually Represent Alternative Routes to One Concept
Parentheses become particularly useful once you have developed several synonyms, spelling variants, acronyms, subject headings, or other expressions for a concept.
Suppose your topic involves online learning. You identify:
-
online learning
-
e-learning
-
online education
-
web-based learning
A concept group might be represented as:
The quality of the group still depends on whether those terms genuinely belong together. Parentheses cannot repair poor terminology. They simply preserve the logic you specify.
Different Concept Groups Are Commonly Connected With AND
Suppose you also have a population concept:
("university students" OR "college students" OR undergraduate*)
The two concept groups can then be connected:
This concept-block structure is widely used in systematic searching. Cochrane recommends building controlled-vocabulary terms, text words, synonyms, and related terms for each concept, normally combining terms within the concept using OR and then combining the concept sets using AND.
Parentheses Do Not Change What AND and OR Mean
Parentheses are sometimes described as though they were another Boolean operator. They are not.
AND still requires the connected search sets to intersect. OR still allows alternatives. NOT still excludes a set. Parentheses control which expressions those operators act on.
If the underlying distinction is unclear, first understand what AND, OR, and NOT actually do. Parentheses become much easier once you can identify which terms belong within a concept and which operators should connect separate concepts.
One OR Group May Contain More Than Ordinary Keywords
A concept group does not have to consist only of plain-language synonyms.
Depending on the database, one concept might be represented through:
- a controlled-vocabulary term;
- a free-text synonym;
- an acronym;
- a spelling variant;
- a phrase;
- a truncated expression.
For example, a biomedical concept could conceptually take the form:
(MeSH representation OR title/abstract synonym OR abbreviation OR spelling variant)
The syntax will differ by database, but the logic is consistent: several legitimate retrieval routes are grouped before the concept is combined with another requirement.
Parentheses Become More Important as the Number of Concepts Grows
Consider a search involving three concepts:
Concept A (term A1 OR term A2 OR term A3)
Concept B (term B1 OR term B2)
Concept C (term C1 OR term C2 OR term C3 OR term C4)
Combined strategy (term A1 OR term A2 OR term A3) AND (term B1 OR term B2) AND (term C1 OR term C2 OR term C3 OR term C4)
Without grouping, the search becomes difficult for both the database and the researcher to interpret correctly. A misplaced operator can allow one synonym to bypass an entire concept requirement.
Parentheses therefore improve not only execution but also readability and auditability.
Missing One Parenthesis Can Change More Than One Term
Suppose you intend:
(teacher OR educator) AND (burnout OR "occupational stress")
This asks for a record satisfying one teacher-related term and one burnout-related term.
Now imagine writing:
teacher OR educator AND burnout OR "occupational stress"
The expression no longer displays the two intended concept groups. Its interpretation depends on the platform's precedence rules, and terms may combine in ways you did not intend.
This is why parentheses are not merely cosmetic formatting. In a complex Boolean string, they are part of the search logic.
Watch Out
Whenever AND and OR appear together, do not rely on visual reading alone. Group the intended concept blocks explicitly and check that every opening parenthesis has the correct closing parenthesis.
Do Parentheses Matter If the Search Contains Only OR?
Consider:
adolescent OR teenager OR youth
If all operators are OR and all terms belong to one flat group, adding parentheses around the entire expression does not usually change the Boolean meaning:
(adolescent OR teenager OR youth)
The grouping becomes consequential when that expression is connected to another part of the search:
(adolescent OR teenager OR youth) AND depression
The parentheses now make clear that all three population alternatives should be evaluated as one concept before the depression requirement is applied.
Do Parentheses Matter If the Search Contains Only AND?
A flat expression such as:
adolescent AND depression AND intervention
usually does not need parentheses merely to group all three AND conditions because they all represent required intersections.
Again, the need becomes more obvious when another Boolean relationship is introduced:
(adolescent OR teenager) AND depression AND intervention
Now the population alternatives need grouping so that either can satisfy the population concept.
Nested Parentheses Can Represent Logic Inside Logic
More complicated searches sometimes require parentheses inside other parentheses. This is called nesting.
For example, you may have a concept whose alternatives themselves contain Boolean structure:
Nested expressions can be useful, but they become difficult to audit quickly. If the search can be represented more transparently as separate search sets in an advanced-search history, that may be preferable.
Search Histories Can Reduce the Need for One Giant Parenthetical String
Many bibliographic databases allow you to build individual search sets and combine them later.
You might run:
Set 1 online learning
Set 2 e-learning
Set 3 online education
Set 4 #1 OR #2 OR #3
Set 5 university students
Set 6 college students
Set 7 #5 OR #6
Final set #4 AND #7
Logically, this accomplishes the same kind of concept grouping without placing every term into one enormous expression. Cochrane's technical guidance explicitly discusses building search sets concept by concept and combining numbered sets using Boolean operators.
This can make a long search easier to test because each concept can be inspected independently.
Parentheses Do Not Tell You Whether a Concept Should Be in the Search
A beautifully grouped search can still be too restrictive.
Suppose your research question contains population, intervention, comparator, outcome, setting, and study design. It may be tempting to create six elegant parenthetical groups and connect all six with AND.
That can cause relevant records to disappear if some concepts are not consistently represented in searchable metadata.
Cochrane's current guidance warns that searching every aspect of a review question can be unnecessary or undesirable. It recommends starting with the principal concepts needed to retrieve the literature and maintaining sensitivity while striving for reasonable precision.
Parentheses organize the concepts you choose. They do not determine whether those concepts belong in the strategy.
Parentheses Can Expose Conceptual Mistakes
One benefit of writing a search in explicit concept blocks is that questionable terms become easier to see.
Suppose you write:
(online learning OR e-learning OR technology) AND (students OR undergraduates)
The grouping makes an important problem visible: technology is far broader than the other expressions in the first block. It may not be an alternative term for online learning at all.
The search might be syntactically correct but conceptually poor.
This is why the process of determining which terms genuinely represent the same concept remains essential. Parentheses faithfully group whatever you put inside them, including mistakes.
Parentheses Can Work With Phrase Searching and Truncation
Parentheses often contain terms that use other search techniques:
("online learning" OR e-learning OR educat*)
Here, quotation marks may define a phrase, the asterisk may represent truncation according to the platform's syntax, OR connects the alternatives, and parentheses group the entire concept.
Each symbol performs a different function.
| Syntax |
Primary Function |
|
|
Groups expressions for Boolean evaluation |
| AND |
Requires different search sets to intersect |
| OR |
Allows alternative search routes |
| NOT |
Excludes a search set |
| " " |
Commonly controls phrase searching, subject to database rules |
| * or another truncation symbol |
Captures word-form variations according to database-specific syntax |
If phrase and truncation behavior are unfamiliar, review how phrase searching, truncation, and wildcards work separately. Mixing several operators before understanding each one makes troubleshooting unnecessarily difficult.
Parentheses Can Also Interact With NOT
Suppose you intend to exclude one complete unwanted set:
Concept A NOT (term X OR term Y)
The parentheses specify that the exclusion applies to the combined X-or-Y set.
But correct grouping does not make the exclusion methodologically safe. A relevant record matching either excluded term can still be removed. Because NOT can accidentally remove relevant research, exclusion logic should be tested independently of whether the parentheses are syntactically correct.
Operator Precedence Is Not Something You Should Guess
Search platforms can document their own order of operations, parser behavior, and syntax. Even when a familiar precedence rule applies, relying on an implicit rule makes a complex search harder to read, reproduce, and translate.
For a substantial strategy, explicit grouping is usually preferable whenever ambiguity is possible.
This becomes even more important when moving the strategy to another database. Syntax, fields, proximity operators, truncation, and parser behavior can differ. The broader principle remains the same: do not assume identical search syntax across databases.
Use Result Counts as a Basic Logic Check
Search-set counts can sometimes expose a grouping error.
Suppose:
- adolescent retrieves 10,000 records;
- teenager retrieves 6,000;
- depression retrieves 50,000.
The OR group adolescent OR teenager should normally be at least as large as either individual population set because either term can qualify. When that population group is combined with depression using AND, the final set should ordinarily be no larger than the population OR group or the depression set because records must belong to both.
If a supposedly restrictive final search suddenly becomes dramatically larger than the component sets in a way the logic cannot explain, inspect the parentheses, Boolean operators, query translation, automatic mapping, and field syntax.
Counts do not establish search quality, but impossible-looking arithmetic is often a useful invitation to inspect the query.
Parentheses Make Search Strategies Easier to Review
A search strategy is not only executed by a database. It may also be reviewed by a librarian, information specialist, co-author, peer reviewer, editor, or future researcher attempting to reproduce the work.
Explicit concept grouping makes the intended logic visible:
Within each group These terms are intended as alternative retrieval routes.
Between groups These concepts are intended to be jointly required.
During review A reader can inspect whether terms are in the appropriate group and whether any concept has been accidentally allowed to bypass another.
For systematic reviews, reproducibility matters. Cochrane requires correct use of AND and OR in structuring bibliographic database searches, while its reporting guidance calls for the exact strategy used for each database to be reported so that the methods can be evaluated and replicated.
Parentheses Should Reflect Meaning, Not Just Make the Search Look Tidy
It is possible to add parentheses that are syntactically harmless but conceptually meaningless.
For example:
((((adolescent)))) AND ((((depression))))
The additional nesting does not improve the logic. It merely makes the query harder to read.
Use parentheses to express actual grouping. A well-structured search should allow another researcher to look at the expression and recognize the conceptual architecture without having to count brackets as though proofreading an unusually hostile equation.