Updates
Updates on previous posts here at Google Search Tricks is frequent due to the dynamic nature of Google Web Search. To ensure that you get the latest information, revised posts are now tagged with '
Update'.

Showing posts with label advanced. Show all posts
Showing posts with label advanced. Show all posts

related Google Operator

The related operator searches for sites that are related to the submitted URL in terms of sites' contents. The MathWorld example below shows sites that are related to mathematics.

Example: related:mathworld.wolfram.com


This operator follows the same rules as the link operator - an invalid URL will convert the related operator into a search term and this operator should not be combined with other operators or search terms.

Use this operator when you have exhausted your list of related search terms, or if you need a quick and broad scan of a site's related contents you are completely clueless about. Note that this operator may sometimes show unrelated sites.

You can use the info operator or click on the Similar link in the results list to perform the same search.

It might be interesting to note that Wikipedia will almost always be listed in the results when you use this operator.

info Google Operator

The info operator shows a site's summary and provides links to the cache, related, link, and site search, if available. Just like the cache operator, this operator requires a valid URL for it to work.

Example: info:www.google.com

As mentioned earlier, this operator is basically the cache, related, link, and site operators rolled into one and is useful as an all-in-one replacement for these operators.

daterange Google Operator

Use the daterange operator to find pages that are indexed by Googlebot within the date range specified. The dates submitted must be in the Julian date format and the fractions should be omitted for this operator to work properly. Make sure you use an accurate Julian date convertor to get the correct date.

Example: daterange:2452671-2452671 columbia

Like the numrange operator, a hypen is used to separate the two dates. This operator is useful for narrowing down all search results to a certain date like in the above example.

The numrange operator requires at least one proper search term and can be combined with other operators.

An additional note: Use Google's advanced search to locate only fresher, up-to-date information. It's easier that way.

numrange Google Operator

The numrange operator
numrange is a powerful operator. It can be used for searching numbers within a desired range. You can use it to search for business contacts, addresses, and more. The following example searches for numbers from 1200 to 1230. Use a hypen (-) to separate the lower and upper bound of the two numbers.

Example: numrange:1200-1230

The .. operator
The .. (period period) operator is a shorthand for the numrange operator.

Example: 1200..1230

Both operators return identical results and can be combined with other operators and search terms.

Due to Blogger's Terms of Service and personal ethics, I can only provide the above basic examples. Google does offer some protection against malicious queries with the numrange operator though:
Some protection = Limited protection, it is still possible to work around this "apology". Use this operator wisely and be wary when making payments online!

cache Google Operator

Google saves "snapshots" of pages that its Googlebot has crawled. You can view these snapshots via the Cached link in the search results.

Another method is to use the cache operator. Using this operator takes you directly to the cached version of a page.

Example: cache:en.wikipedia.org/wiki/Googlebot

The cache operator follows the same rules as the link operator. It should not be used with other operators or search terms; doing so will convert the operator into a search term. Invalid URLs will also convert the cache operator into a search term.

It is always easier to access the cached version of a page via Google's search results compared to using the cache operator. However, bear in mind that with the cache operator, you (or any other potential hacker) can dig up old pages that were removed from the search results for whatever reason.

Update
Webmasters of secure sites usually do not allow Google's caching. Such sites will not show the Cached link and will not produce any results with the cache operator.

inanchor, allinanchor Google Operator

The inanchor operator
The inanchor operator searches the anchor of a link, and not the actual URL. What is an anchor of a link?

An example of a link: Google Expert Tips. The anchor of this example is the displayed text 'Google Expert Tips'. Underlying the more readable and meaningful anchor text is the actual URL of the page. The HTML code looks like:

The inanchor operator searches within the anchor text "Google Expert Tips" in this case. This operator can be used with other operators.

Example: inanchor:scholarship inanchor:form inanchor:application site:edu

See the link operator for more details.

The allinanchor operator
The allinanchor operator searches for all search terms submitted. The following example will show the same results as the above.

Example: allinanchor:scholarship form application site:edu

This operator should not be combined with other operators. Use multiple inanchor operators if you are combining with other operators.

ext Google Operator

The ext operator is very similar to the filetype operator. They are so alike that most people simply ignore the difference and use them interchangeably, or drop filetype operator entirely for the ext operator since it is easier to enter on the keyboard.

Originally, the ext operator is a shorthand for the numrange operator. However, it is soon replaced by the newer, further shortened version of the numrange operator: the .. (period period) operator. So eventually (and very naturally), the ext operator became an extension search operator just like the filetype operator.

Use the ext operator for the more uncommon file types because it usually produces a deeper and faster search. The filetype operator on the other hand performs better with common file extensions.

See filetype operator for more information.

link Google Operator

The link operator searches for HTML links to a particular page.

Example: link:ntu.edu.sg

Note that Google shows the number of hits as usual, followed by "linking to ntu.edu.sg". This indicates a correct link search.
Take care that the link submitted should be a valid URL. An invalid URL will cause the link operator to become an ordinary search term.

This operator should not be used with other operators or search terms; doing so will convert the link operator into a search term.

Compare the link operator with the site operator. The site operator shows no result for an invalid URL whereas the link operator shows results of different context depending on the validity of the URL submitted.

You can use sub-domains to narrow search results. A neat trick is to use this operator to search for backlinks to a particular page of your site. Note that the results may not be the same as those shown in Google Analytics or Google Webmaster Tools.

filetype Google Operator

The filetype operator allows you to search for pages that end with a particular file extension, i.e. restricts a search to a certain file type.

Example: filetype:xls OR filetype:doc OR filetype:pdf site:nus.edu.sg +answers

Note that from the above example, you can view PDF files with Google Docs by clicking on Quick View. Google will also convert documents into HTML for viewing. You can view a document in HTML format by clicking on the View as HTML link.

This is useful when you do not have a required document viewer installed on your computer. However, it is always better to view the documents in their original format as the HTML conversion is not perfect - some of the contents may be missing.

Almost every file extension can be searched for. FILExt has a comprehensive list of file extensions. This operator can effectively narrow your document search when used with the site and / or intitle operators. Note that using a NOT operator with the filetype search term will not produce any results.

Examples that will not show any results:
filetype:txt -inurl:txt
filetype:txt -txt

A related operator is the ext operator.

site Google Operator

One of the more useful operators, the site operator is used to restrict a search to a particular URL or domain name. It is commonly used to search within a known website.

Example: site:americanexpress.com travel

Note that Google matches the domain names from right to left instead of the usual left to right. Therefore, all URLs used with the site operator must end with a valid registered top-level domain name.

Include sub-domains to narrow the search results.

Examples:
site:home.americanexpress.com travel
site:home.americanexpress.com/home travel

Compare the difference in the number of hits between all the above examples.

inurl, allinurl Google Operators

The inurl and allinurl operators are used for finding search terms in a URL.

The inurl operator
Example: inurl:simpsons mypod

Advanced example: inurl:robots.txt -inurl:html filetype:txt -search

The allinurl operator
Similar to allintitle, this operator restricts all search terms after it to URLs only.

Example: allinurl:simpsons mypod

The allinurl operator should not be combined with other operators. Use multiple inurl operators with basic operators instead, if necessary.

Note that these operators may return unpredictable results when used with search terms that includes symbols and special characters.

allintext Google Operator

Use the allintext operator to restrict a search to only within the text of a page. This excludes search terms found in titles and URLs.

Example: allintext:text only

This operator is rarely used; only in situations where you would like to narrow your search results to text only. Note that Google may highlight the titles or URLs if the search terms is also found in the them. This operator should not be combined with any other operators.

intitle, allintitle Google Operators

Use the advanced operators intitle and allintitle to search within the title of a Web page. Again, for the benefit of all, the title of a page is located within the title tag of a HTML document. For pages without titles, the operators will return hits based on the topmost text of that page.

The title of message posts applies when searching in Google Groups.

The intitle operator
Examples:
intitle:disney.land
intitle:casino.resort "free.membership"

Advanced examples:
intitle:"index of" mp3
intitle:"index of" password OR passwd OR pass

The allintitle operator
Google will find every single search term or phrase after the allintitle operator in the title of a Web page.

Examples:
allintitle:disney land hong.kong
allintitle:index.of private

Note that the allintitle operator may yield unpredictable results when used with other advanced operators.

Google Advanced Operator Rules

Before learning Google's more advanced operators, we have to keep in mind some general rules.

Advanced operator syntax
An advanced operator has the following syntax: advanced_operator:search_term or advanced_operator:"search_phrase". These are the only two correct ways to use an advanced operator.

There cannot be any spaces between the advanced operator, the colon, and the search term or search phrase. A space between any of them will change the advanced operator into a search term.

Example of correct usage: inurl:money. All results have the word 'money' in their URL. Add a space in between: inurl :money, the inurl operator becomes a search term. Try it.

The search term or phrase to be used with an advanced operator follows the same general search rules.

Basic operators that are added in front of a search term will be ignored. Example: inurl:+money is the same as inurl:money. Another example: inurl: +money. inurl becomes a search term and 'money' becomes just an ordinary forced-include search term.

Basic operator combos
Combination of an advanced operator with multiple search terms that use basic operators follow the basic operator rules that has been covered until now.

A correct example: insurance +inurl:money -bank. Submitting this tells Google to show results that has 'insurance' in title, text or URL, to show results that must have 'money' in URL, and not to show results that has 'bank' in title, text, or URL.

Using the + operator with an advanced operator search phrase will invalidate the function of the advanced operator. Compare these two results: inurl:"money tree" and +inurl:"money tree".

Advanced operator combos
Advanced operators can be combined into a single search and basic operators can be used as well. They follow the general search rules and the basic operator rules. However, do take note that not all advanced operators can be combined and some advanced operators cannot be combined at all.