Google Advanced Search Operators
Google Advanced Search Operators
Here, in one place, are all of the currently documented advanced search operators. Note that some
operators come in two versions of the same operator: (e.g., allinanchor along with inanchor: ). I’ve written
about them together rather than having two entries for the same kind of operator. (But, in truth, I almost
never use the “allin…” form.)
Note: In this document, I follow the square brackets convention, here a query is surrounded by square
brackets. So, when doing the query, you wouldn’t actually use the square brackets in your query.
(Although it won’t hurt anything either...) Example:
[ codfish site:nytimes.com ]
_______________________________________________________________________
allinanchor: / inanchor:
-- Google restricts results to pages containing all query terms in the anchor text on links to the page.
For instance: [ allinanchor: best restaurant Sunnyvale ] will return only pages in which the anchor text on
links to the pages contain the words “best” “restaurant” and “Sunnyvale” – that is, all of the words following
the allinanchor operator. So, when using allinanchor: in your query, do not include any other search
operators. By contrast, using the operator inanchor: only searches for the term that’s next. (This is true
for all of the “all…” operators.) Example: [ inanchor:sales offer 2011 ] will search only for “sales” in the
anchor text.
Definition: Anchor text is the text you see on a page that is linked to another web page
or a different place on the current page. For instance, this sample link has “sample link” as its anchor text.
When you click on anchor text, you will be taken to the page or place on the page to which it is linked.
Example: [ allinanchor: best restaurant La Jolla ocean view ] - search for those terms in the anchor
allintext: / intext:
-- restricts results to those containing all the query terms you specify in the text of the page. For
example, [ allintext: camping tent stove] will return only pages in which the words “camping” “tent” and
“stove” appear in the text of the page. Using the operator “intext: will search only for the next term in the
text of the page. . (Note: using intext: in front of every word in your query is the same as using allintext: at
the front of your query, e.g., [ intext:Victorian intext:artists ] is the same as [ allintext: Victorian artists ].)
Example: [ allintext:mesothelioma asbestos symptoms ] - search for all those terms on the page
allintitle: / intitle:
-- results to those containing all the query terms you specify in the title. For example,
[ allintitle: university relations ] will return only documents that contain the words “university” and
“relations” in the title of the page. Using the operator intitle: will search only for the next term in the title of
the page. For instance, [ flu shot intitle:help ] will return documents that mention the word “help” in their
titles, and mention the words “flu” and “shot” anywhere in the document (title or not).
allinurl: / inurl:
-- restricts results to those containing all the query terms you specify in the URL. For example, [
allinurl:google
Google faqAdvanced
] will return only documents
Search that contain the words “google” and “faq” in the URL, such
Operators
as “www.google.com/help/faq.html”.
Search exactly as is (double quotes around a single word) - aka ‘phrase search’
-- Google employs synonyms automatically, so that it finds pages that mention, for example,
childcare for the query [ child care ] (with a space), or California history for the query [ ca history ]. But
sometimes Google helps out a little too much and gives you a synonym when you don't really want it. By
attaching double quotes around a word as in the query
[ “ca” history ]
you are telling Google to match that word precisely as you typed it. Note that you can put double quotes
inside of double quotes, as in:
[ "words that are "mispelled" by" ]
this query searches for the phrase “words that are mispelled by” -- but the term “mispelled” is
intentionally misspelled. (Get it?)
site:
-- using the site: operator restricts your search results to the site or domain you specify. For example, [
penquins site:.aq ] will search for pages about penguins from web sites that have an AQ top-level domain
name. (AQ is Antarctica, and is mostly research stations located there.) A query like [ accidents site:bls.gov
] will find pages about accidents within the bls.gov domain (BLS = Bureau of Labor Statistics). You can
specify a domain with or without a period, e.g., either as .gov or gov.
related:
-- a search for related:URL lists pages that are similar to the web page you specify. For instance, [
related:en.wikipedia.org] will list web pages that are similar to the Wikipedia homepage. (Deprecated:
June, 2023)
Combinations of operators:
-- many of the search operators –, OR, and " " can be combined. For example, to find articles on security
from all sites except Wikipedia.org you would search for:
[ article security –site:Wikipedia.org ] Similarly, you might want to exclude some kinds of documents with
a search such as [ salsa recipe -tomatoes -filetype:pdf ] which would find salsa recipes that do not include
the term “tomatoes” and are not PDF files.
More advanced search options:
-- Note that the Advanced Search page (http://www.google.com/advanced_search) also provides a
set of search options that are not available as special operators. Using the Advanced Search page you can
also:
- filter by language (e.g., find pages only in Spanish, Chinese, German, etc.)
- date (filter by time)
- usage rights (filter by Creative Commons license)
- reading level (find pages that are Basic, Intermediate or Advanced reading levels)
NOTES:
If you’ve read this far, you’re a true Search Nerd. Nicely done.
Special characters: Not long ago, only a few very special characters were searchable. These days,
almost all of them are searchable! You can now search for ∞ Note that a few symbols: $ % # are special-
special and can be searched for as part of a term (e.g., #cute or $50 or 24%). See “Number Range” above.
Another special-special character is : (colon). You CAN search for things that look like this:
[ 10:27 ] (useful mostly for Bible verses).
But generally speaking, you can now search for extended characters.
Examples:
[ I ❤ NY ]
[ 🍺 pub ] or, the logical extension of this: [ 🍺 nagano site:.jp ]
[ size 7½ ]
(But note that the ½ character will be synonymized to 0.5 as well, so you might find 7.5 as well as 7½ -- if
you don’t want the synonyms, use Verbatim mode OR the double quote operator).
A special-special character is + -- you can now search for special terms that we have with a plus character
in it in the last position. Examples:
[ G+ ]
[ C++ ]
[ Coke+ ]
[ timer+ ]
[ 40+ ] -- and other numbers (20+,30+, 55+, etc.)
Parentheses don’t matter: I know lots of people want to be able to do something like this:
[ (A B ) OR (C D) ]
but Google doesn’t see the parens, and that gets turned into:
[ A B OR C D ]
which means just A, (B OR C), and D. If you want to get [ A B ] OR [ C D ] you’ll have to do 2 separate
searches and combine the results yourself, which is probably what you really want to do. Why doesn’t
Google support this? Because we’ve found that most people get it wrong. That is, when they use parens,
they end up with a search that is much worse than if Google ignores the parens. (I’ve seen this in my own
field studies, even among information professionals--people mess up the parens a LOT.)
Word order: Yes, word order matters in a search. Consider the difference between the searches: [ to be
or not to be ] vs. [ be to not or be to ] -- the results are VERY different.
-----
Deprecated:
Link: (taken out of service mid-2016)
Google
-- link:URL shows Advanced Search
pages that point to that URL. Operators
-- For example, to find pages that point to Google’s 3DWarehouse home page you used to search for…
[ link: http://sketchup.google.com/3dwarehouse/ ]
But it was getting really abused, so Google had to remove it from general use.
Plus (+) operator: And you’re probably wondering what happened to the + operator. Well, here’s the story.
It USED TO MEAN the same as Verbatim (i.e., do not spell correct, and use no synonyms). Then, during the age of Google-+ (G+) it
used to be a flag for “Search G+ for mentions of this term.” But that interpretation is long gone.
Synonym (~) tilde operator: This used to let searchers ask for “and all the synonyms” of a term. (example: [ ~mesothelioma ]
would search for mesothelioma and all of its synonyms. That was removed because synonyms is always turned on these days. It
would just be redundant.
Filetype:CSV Filetype:MP3 These filetype operators used to return useful results. They no longer do so. Try using Google Data
Set Search instead.