16 comments

[ 4.5 ms ] story [ 44.0 ms ] thread
Section 4.1 needs to be updated. When you try to use it, Google displays this message on the SERP: "The + operator has been replaced. To search for an exact word or phrase, use double quotation marks."
Nice! Co-workers will be happy to have this.
(comment deleted)
You can actually build pretty complicated queries using Google. I could never find documentation for queries like this:

"This-is-*-(dog|cat)"

... but they work. Occasionally you might be accused of being a robot, though.

Any idea what the throttling rate is on this api?
Another one www.google.com/ncr - sets default Google search domain from google.cc to google.com, where CC is country tld. Useful if you prefer to search in .com version and not the localized one.
Fun!

I immediately nerd-sniped myself and started playing with factorials.

Turns out it only goes up to 170!. 170! gives you a number (170 ! = 7.25741562 × 10306). 171! searches for 171 in documents.

Still fun, and pretty darn fast, too. I thought they were probably caching the results for 1 - 170, but they return just as fast for non-integer factorials as well (try 100.2!).

(http://en.wikipedia.org/wiki/Factorial#Extension_of_factoria...)

Nice work on this, whoever did it :)

They still could be caching them. The first time they encounter a factorial, they calculate it, throw it in a DB, and it's a quick DB access from then on.