The Special Syntaxes
In
addition to the basic AND, OR,
and quoted strings, Google offers some rather extensive special
syntaxes for honing your searches.
Google being a full-text search engine, it indexes entire web pages instead of just titles and descriptions. Additional commands, called special syntaxes, let Google users search specific parts of web pages or specific types of information. This comes in handy when you’re dealing with 2 billion web pages and need every opportunity to narrow your search results. Specifying that your query words must appear only in the title or URL of a returned web page is a great way to have your results get very specific without making your keywords themselves too specific.
Tip
Some of these syntaxes work well in combination. Others fare not quite as well. Still others do not work at all. For detailed discussion on what does and does not mix, see [Hack #8].
-
intitle: intitle:restricts your search to the titles of web pages. The variation,allintitle:finds pages wherein all the words specified make up the title of the web page. It’s probably best to avoid theallintitle:variation, because it doesn’t mix well with some of the other syntaxes.intitle:"george bush" allintitle:"money supply" economics
-
inurl: inurl:restricts your search to the URLs of web pages. This syntax tends to work well for finding search and help pages, because they tend to be rather regular in composition. Anallinurl:variation finds all the words listed in a URL but ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access