I <3 Steve McConnell*
Coding Horror
programming and human factors
by Jeff Atwood

May 19, 2005

Google-fu

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    View blog reactions

 

« A Group Is Its Own Worst Enemy Blogging about Blogging »

 

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 01:46 PM

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 03:25 PM

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 03:35 PM

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 05:41 PM

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 02: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 03: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 03: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 02:39 AM

asasasas

indir on April 2, 2008 10:11 PM

programlar
programlar
Msn Avatarları
antivirüs
Msn Nickleri
kalpcafe
çet chat
sohbet sohpet
oyun indir
bilgi
msn indir
chat
tatil yerleri
dizi izle

indir on April 2, 2008 10:12 PM







(hear it spoken)


(no HTML)




Content (c) 2008 Jeff Atwood. Logo image used with permission of the author. (c) 1993 Steven C. McConnell. All Rights Reserved.