Google-fu

May 19, 2005

Assalama Alaikum!

Did you ever get the feeling that the browser address bar is the new command line? I keep forgetting how much functionality Google provides in their search text box; I was reminded when Damien Katz posted a link to a nice little Google search cheat sheet. Google also automatically recognizes certain strings, such as UPS tracking numbers, UPC codes, math calculations, etcetera. Here's a list of those shortcuts, with helpful examples. There's also a more comprehensive list of supposedly undocumented (at least on Google's web site) search operators. Interestingly, I found another list with at least one operator I've been looking for-- date range-- which doesn't appear at all on the other list:


  1. link:url Shows other pages with links to that url.
  2. related:url same as "what's related" on serps.
  3. site:domain restricts search results to the given domain.
  4. define:word provides a definition of the word.
  5. allinurl: shows only pages with all terms in the url.
  6. inurl: like allinurl, but only for the next query word.
  7. allintitle: shows only results with terms in title.
  8. intitle: similar to allintitle, but only for the next word. "intitle:webmasterworld google" finds only pages with webmasterworld in the title, and google anywhere on the page.
  9. cache:url will show the Google version of the passed url.
  10. info:url will show a page containing links to related searches, backlinks, and pages containing the url. This is the same as typing the url into the search box.
  11. spell: will spell check your query and search for it.
  12. stocks: will lookup the search query in a stock index.
  13. filetype: will restrict searches to that filetype. "-filetype:doc" to remove Microsoft word files.
  14. daterange: is supported in Julian date format only. 2452384 is an example of a Julian date.
  15. maps: If you enter a street address, a link to Yahoo Maps and to MapBlast will be presented.
  16. phone: enter anything that looks like a phone number to have a name and address displayed. Same is true for something that looks like an address (include a name and zip code)
  17. site:www.somesite.net "+www.somesite.+net"
    (tells you how many pages of your site are indexed by google)
  18. allintext: searches only within text of pages, but not in the links or page title
  19. allinlinks: searches only within links, not text or title

I've always wanted to query Google for web pages created or modified earlier than a certain date, but Julian dates? Ugh! Well, at least someone already built a special Google search page to get around this limitation.

Posted by Jeff Atwood
13 Comments

A lot of the search commands, at least where appropriate, also work in GMail.

For example, it annoys me I can't have a view on the menu which just shows unread messages. (I tend to leave actionable e-mails in the Inbox until complete and then archive them). What I saw somewhere else you can do though is to do the search "is:unread", and this will list all unread e-mails. From that screen you can Apply a New Label and bam, a quick link to show all unread e-mails.

Ian on May 20, 2005 2:46 AM

The "special Google search page" has a popup in Firefox stating "this only works in IE". WTF..OMG..BBQ! :P Without starting a flame war...why do you have to make things browser-specific? ActiveX is one thing..but OMG. Come on!

Back on topic...Google friggin' owns. Too bad I only have 3 shares of the stock. I wish I had bought more...oh well.

Brian Swiger on May 20, 2005 4:25 AM

I don't think I'd want to live without my "msdn" keyword in Firefox:

http://www.google.com/search?q=site:msdn.microsoft.com+%s

msdn datatable

Bill Brown on May 20, 2005 4:35 AM

Bill, is that this?

http://www.oreillynet.com/pub/wlg/5358

aka Mozilla "keymarks"?

http://devedge.netscape.com/viewsource/2002/bookmarks/

Jeff Atwood on May 20, 2005 6:41 AM

A number of these keywords can be inferred from the Google Advanced Search pages; searches done from that page will have the keywords in the resulting search criteria.

Robert Watkins on May 23, 2005 3:54 AM

Jeff - The URL command line is finally here: yubnub.org . And you can integrate it with the Firefox address bar by setting keyword.URL.

Jonathan Aquino on June 12, 2005 4:26 AM

Once you've set keyword.URL to http://yubnub.org/parser/parse?command= you can type "ls" to get a list of commands!

Jonathan Aquino on June 12, 2005 4:30 AM

Phillip Lenssen's expert google search tips are far, far better than mine.

http://blog.outer-court.com/archive/2005-09-29-n85.html

Here's one about stop words:

--
Google doesn’t have “stop words” anymore. Stop words traditionally are words like [the], [or] and similar which search engines tended to ignore. Sometimes, when you enter e.g. [to be or not to be], Google even decides to show some phrase search results in the middle of the page (separated by a line and information that these are phrase search results).
--

Jeff Atwood on September 30, 2005 3:39 AM

It appears someone has taken your words to heart:
http://goosh.org/ .

Tony on June 5, 2008 11:15 AM

thanks for this post.

spor oyunlar on June 9, 2008 9:27 AM

WOW...awesome informations....can't believe a search engine like google can do so many magics. Many thanx for sharing

Subimal on August 23, 2008 6:32 AM

Yes, google rules. However, one thing I could not understand is why GMAIL does not offer a natural logic option: sorting. Its search function searchs only content, not sender's address.

Yes, the more we have, the more we want

xun on August 23, 2008 7:18 AM

The comments to this entry are closed.