Sub topic 3
Sharpening queries with quotes, AND, OR, NOT, and parentheses
This chapter assumes you have a free LinkedIn account and a free Indeed account. It also assumes you can already run a basic keyword-and-location search on either site, as covered earlier in this tutorial, and that you have a short list of target job titles. Here you will learn the working model behind Boolean queries, the exact syntax that each platform accepts, and the errors that most often return too many or too few results.
Why Boolean operators help
A plain search such as product manager remote is loose. The platform treats the words as separate terms and ranks postings that contain some or all of them. You may see postings about "project managers" that mention a "product" somewhere, or postings that are not remote at all.
Boolean operators are words that tell the search engine how to combine terms. They come from logic, and four ideas cover nearly every job search:
- Phrase matching keeps words together in order.
- AND requires both sides to be present.
- OR accepts either side.
- NOT excludes a term.
Parentheses group terms so the engine reads the query the way you intend. Together these let you widen a search to catch title variants, or narrow it to cut noise.
The building blocks
Quotation marks for phrases
Put quotation marks around two or more words to match them as one exact phrase, in that order.
"product manager"matches postings containing those two words side by side.product managerwithout quotes may match postings where "product" and "manager" appear far apart or in different contexts.
Use straight quotation marks ("). Curly quotes pasted from a word processor can be treated as ordinary characters, so the phrase match silently fails. If a quoted search returns oddly broad results, retype the quotes by hand.
AND
AND requires both terms to appear. Both LinkedIn and Indeed treat a space between terms as an implied AND, so python sql already means python AND sql. Writing AND explicitly is still good practice because it makes your intent clear and keeps the query readable when you mix it with OR.
Operators must be written in capital letters. A lowercase and or or may be treated as an ordinary word to search for, not as an operator.
OR
OR accepts either term. It is the main tool for covering synonyms, such as different titles for the same role: "data analyst" OR "business analyst". Each added OR option makes the search wider.
NOT
NOT removes postings that contain a term. Place it before the word or phrase you want to exclude: analyst NOT intern. Each added NOT makes the search narrower. Use it sparingly, because it can hide a good posting that happens to mention the excluded word once, for example "you will supervise one intern".
Parentheses
Parentheses group terms so that an operator applies to the whole group. Without them, the order in which the engine reads a mixed query can differ from what you meant. Compare these two:
"product manager" AND remote OR hybrid"product manager" AND (remote OR hybrid)
The first can be read as "product manager and remote, or else hybrid", which would let in any posting that says "hybrid", whether or not it is a product manager role. The second means "product manager, and also either remote or hybrid". Always parenthesize an OR group that sits next to another operator.
How the engine reads a query
Treat this diagram as a mental model, not a specification. Neither platform publishes its ranking logic in full, and both may add their own relevance ranking, so the order of results can differ from a strict logical filter. The model still predicts which postings are eligible to appear.
Worked examples
Each example below can be pasted into the keyword box. Leave the location box for the city or region, as described earlier in this tutorial.
"product manager" AND (remote OR hybrid)Quotation marks keep the two words together as a phrase, and the parentheses group the OR so that either work arrangement can match.
("data analyst" OR "business analyst") NOT internThis matches either title and uses NOT to leave out postings that mention intern.
title:("software engineer" OR "backend developer") pythonOn Indeed, the title: operator limits the title match to the job title, while the remaining keyword (python) is matched anywhere in the posting. This is the most useful Indeed-specific operator for job seekers because it stops body-text mentions from flooding the results.
Building a query step by step
A reliable way to write a query is to build it in layers and check the result count after each one.
- Start with the core phrase:
"data analyst". - Add title variants with OR in parentheses:
("data analyst" OR "business analyst"). - Add a required skill:
("data analyst" OR "business analyst") AND sql. - Exclude the noise you actually saw:
("data analyst" OR "business analyst") AND sql NOT intern.
Stopping after each step shows you which change moved the results. If the count drops to nearly zero at step 3, the skill term is too strict for the titles you chose.
Platform differences
The two sites share the core operators but differ in details.
| Feature | LinkedIn Jobs | Indeed |
|---|---|---|
| Quoted phrases | Supported | Supported |
| AND, OR, NOT in capitals | Supported | Supported |
| Parentheses for grouping | Supported | Supported |
| Title-only search | Not available as an operator in the keyword box. Use the title field or filters instead. | `title:` operator |
| Minus sign for exclusion | NOT is the documented form | `-term` also works as exclusion |
| Behavior of long queries | Very long queries may be truncated or ignored in part | Very long queries may return fewer results than expected |
Platform behavior changes over time. If a query behaves differently from this table, test it with a small example, such as a single quoted phrase, and compare the counts.
Common errors
Most problems with Boolean queries fall into a few categories.
- Lowercase operators. Writing
orinstead ofORcan make the engine search for the word "or". Always capitalize. - Missing parentheses. A mixed AND/OR query without grouping can match far more than you intended.
- Unbalanced parentheses or quotes. An opening mark without a closing one can cause an error or an empty result. Count them before you press search.
- Too many OR options. A list of fifteen titles may return thousands of postings, many of them only loosely relevant. Start with three to five.
- Over-excluding with NOT. Excluding common words such as
seniorormanagercan hide the exact roles you want. - Quoting everything. Quoted phrases are strict.
"senior data analyst"will not match "Sr. Data Analyst" or "Data Analyst, Senior". Offer variants with OR when titles differ across employers. - Stacking Boolean logic and filters redundantly. If you already filter for remote jobs with the Remote filter, adding
AND remoteto the query can exclude postings that are remote but never use that word in the text. Let filters handle structured fields and let the query handle language.
Choosing between a wide and a narrow query
The right strictness depends on how you will use the query. A search you run by hand can afford to be wide, since you can scan and discard. A query you save as an alert should usually be tighter, because every extra irrelevant match becomes a notification. Later chapters cover alerts in detail. For now, test each query in a normal search first, read the first twenty or so results, and only then decide whether it is ready to save.
| Situation | Adjust the query by |
|---|---|
| Too many irrelevant results | Add quotes, add a required AND term, or add NOT for a clear noise word |
| Too few results | Remove a NOT, drop a required term, or add OR title variants |
| Same companies repeating | Add NOT for the company name, or use filters rather than text |
| Wrong seniority | Add NOT for the unwanted level, or use the experience level filter |
Exercises
Exercise
You want postings for either "customer success manager" or "account manager", and you want to leave out any posting that mentions "sales". Write one query that does this.
Show answer
("customer success manager" OR "account manager") NOT sales
Exercise
A learner writes "project manager" AND remote OR hybrid and sees many postings that are not project manager roles. Explain why and give the corrected query.
Show answer
Without parentheses, the query can be read as "project manager and remote", or else "hybrid" on its own, so any posting that mentions hybrid can match regardless of title. Group the OR: "project manager" AND (remote OR hybrid).
Exercise
On Indeed, you want postings where the job title is either "software engineer" or "backend developer" and the posting mentions python anywhere. Which operator limits the match to the title, and what is the full query?
Show answer
The title: operator. The query is title:("software engineer" OR "backend developer") python