BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
SEO

Boolean search: Using AND, OR and NOT

Boolean search joins words with AND, OR and NOT to narrow or widen results. Each tool reads the operators its own way, so check its rules first.

Monthly searches · boolean search
550.0k
Keyword research data
boolean search
Boolean search: Using AND, OR and NOT
Click the image to view it full size

Boolean search means writing a query as a small logical statement: which words must appear, which may appear, and which must not. It's named after George Boole, the 19th-century mathematician whose algebra treats every statement as either true or false. A page either matches your query or it doesn't.

You'll meet it in library and research databases, job and people search, email filters, brand monitoring tools and, in a reduced form, in Google.

The three operators and two helpers

You write What it does Example Result
AND Every term must appear seo AND audit Fewer, more focused results
OR At least one term must appear seo OR "search engine optimization" More results, catches synonyms
NOT The term must not appear jaguar NOT car Removes a wrong meaning
" " The words appear together, in this order "canonical tag" Exact phrase only
( ) Groups terms so they're read first (audit OR checklist) AND seo Controls how the query is read

Most tools want the three operators in capital letters. In lowercase, many read "and" or "not" as ordinary words.

Build a query step by step

Say you want articles about canonical tags, but you keep getting pages about one CMS plugin.

  1. Start with the phrase: "canonical tag".
  2. Add the other name people use, grouped with OR: ("canonical tag" OR "rel canonical").
  3. Require the angle you care about: ("canonical tag" OR "rel canonical") AND duplicate.
  4. Remove the noise: ("canonical tag" OR "rel canonical") AND duplicate NOT plugin.

Run the query after each step. If the results shrink to nothing, the last term you added is too strict. If they're still noisy, look at what the wrong results have in common and exclude that.

Every tool reads the same query differently

The operators look universal, but each tool sets its own rules. Two examples, from each owner's help pages:

  • LinkedIn wants AND, OR and NOT in uppercase. It resolves quoted phrases and parentheses first, then NOT, then AND, and OR last. It doesn't support wildcards (*), braces, square or angle brackets, and asks you to use AND and NOT instead of + and -. LinkedIn Help
  • PubMed also wants uppercase operators and puts AND between your concepts on its own. But it processes a search left to right. PubMed Help

That difference matters. Take seo OR ppc AND agency. LinkedIn reads AND first: seo OR (ppc AND agency), so any page that mentions SEO matches. PubMed reads left to right: (seo OR ppc) AND agency, so every match must mention an agency.

The fix is simple: put parentheses around every OR group. Then the query means the same thing everywhere.

Boolean search in Google

Google isn't a strict Boolean engine, and its help page lists a different set of operators. Google Search Help

  • Quotes match an exact word or phrase: "tallest building".
  • A minus sign right before a word leaves it out: jaguar speed -car.
  • site: limits results to one site, filetype: to one file type, and before: and after: to a date range.

AND, OR and NOT aren't on that list. To translate a Boolean query for Google, put required phrases in quotes and turn NOT into a minus sign. For the full list, see Google search operators.

If you're checking your own site, remember that operators are bound by Google's indexing and retrieval limits. Google says the URL Inspection tool in Search Console is more reliable for that job.

Where SEOs use it

  • Brand monitoring. Alerts for a brand name that's also a common word need exclusions, for example "Apex" AND (software OR app) NOT game. See brand mention tracking.
  • Finding link prospects. Combine site:, quotes and a minus sign in Google to find pages that mention a topic but not your site.
  • Filtering keyword lists. Many keyword and spreadsheet tools accept include and exclude rules that work the same way: keep rows with any of these words, drop rows with those.

Mistakes that break a query

  • Lowercase operators. "and" becomes a search word. Write AND, OR, NOT.
  • No parentheses around OR. The tool decides the grouping for you, and tools decide differently.
  • Curly quotes. Word processors turn " into “ ”, which a tool may not read as quotes. Type queries in a plain text field.
  • Too many NOTs. Each exclusion also removes good results that happen to use that word. Check what you lose before you keep one.
  • Symbols the tool doesn't support. Wildcards, brackets and + or - work in some tools and are ignored in others. Check the tool's help page first.
SEO wiki

Related terms

More definitions from the same corner of SEO and digital marketing.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.