Google Suggest 655
Cristiano writes "As you type into the search box, Google Suggest guesses what you're typing and offers suggestions in real time. This is similar to Google's 'Did you mean?' feature that offers alternative spellings for your query after you search, except that it works in real time." It crashes Konqueror, but works nicely on Mozilla. Update: 12/11 by J : The engineer who thought of it, then built it in his "20% time," blogs about the process.
Crashes Konqeuror? (Score:5, Informative)
Re:Cool! Just like form AutoComplete (Score:5, Informative)
Browser Wars (Score:2, Informative)
Re:How is it so FAST!? (Score:3, Informative)
http://www.google.com/complete/search?
So, basicly they use some javascript to handle on keypress event, send the data to google and back, and display them
Re:Crashes Konqeuror? (Score:3, Informative)
Re:Advertising potential (Score:1, Informative)
a => amazon
b => best buy
c => cnn
e => ebay
f => firefox (!)
h => hotmail
i => ikea
m => mapquest
u => ups
v => verizon
x => xbox
y => yahoo
Great...
Hmm. Does interfere with FireFox autocomplete (Score:2, Informative)
Re:Cool! Just like form AutoComplete (Score:4, Informative)
(definition)
Definition: A theoretical measure of the execution of an algorithm, usually the time or memory needed, given the problem size n, which is usually the number of items. Informally, saying some equation f(n) = O(g(n)) means it is less than some constant multiple of g(n). The notation is read, "f of n is big oh of g of n".
Strangely enough, I got this definition from a Google search.
Re:What Google needs is Lexis-Nexis and Journal ta (Score:3, Informative)
Re:How is it so FAST!? (Score:4, Informative)
Re:The ABCs of Google Complete - The 123s (Score:2, Informative)
1 is for 1
2 is for 2004 Election
3 is for 3m
4 is for 411
5 is for 50 cent
6 is for 60 minutes
7 is for 7th heaven
8 is for 89.com
9 is for 911
Implementation details (Score:5, Informative)
It disables your browser's autocomplete on that textfield (for obvious reasons). Then it basically just defines a hidden div for that auto-complete dropdown (variations on this depending on browser... frickin' incompatibilities).
Each time you type a character, it populates that div body with the results of a quick, tiny query back to Google. It's NOT running the search for you; it's hitting (I assume) a simple, probably totally in-memory list of the most popular searches and number of results. That's how it can be so quick a response -- the lookup on their end is super-minimal, and the data to be transferred is probably less than 1k each time.
Cool. Nice concept, nice execution. And one of those nice "only obvious in hindsight" additions.
Even cooler -- it looks like (from the js file) they are supporting multiple languages here, not just English. Anyone using want to test this out for me? I think even Chinese is supported (or maybe that's the one that isn't.. I don't want to take the time to parse this properly).
Re:The ABCs of Google Complete (Score:2, Informative)
A is amazon
B is for BBC
C is for cars
D is for Dell
E is for Ebay
G is for games
H is for http
I is for index
J is for jobs
K is for kelkoo
L is for love
M is for music
N is for news
O is for online games
P is for pubmed
Q is for quotes
R is for ringtones
S is for s (that is weird)
T is for target
U is for UPS
V is for virgin
W is for weather
X is for xbox
Y is for Yahoo
Z is for zdnet
Re:What Google needs is Lexis-Nexis and Journal ta (Score:3, Informative)
Re:Cool! Just like form AutoComplete (Score:1, Informative)
Re:Interesting Political Uses (Score:3, Informative)
Re:Obfuscated Javascript (Score:3, Informative)
Re:Cool! Just like form AutoComplete (Score:3, Informative)
Big O notation [wikipedia.org] refers to the efficiency of the algorithm. If you really understand the notation, you wouldn't be asking what 'n' means. The original post stated that the "Did you mean..." algorithm is O(n) efficient. If it stated that the algorithm is O(1) efficient, would you ask what the 1 represents?
Re:URL is same, with ?complete=1? (Score:3, Informative)
Re:Try this: (Score:3, Informative)
Re:URL is same, with ?complete=1? (Score:4, Informative)
function jb(){var A=null;
try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{A=ne
This function is obviously copyright google, inc., but being presented here for educational purposes only.
Re:The ABCs of Google Complete (Score:2, Informative)
Re:The ABCs of Google Complete (Score:2, Informative)
Re:URL is same, with ?complete=1? (Score:4, Informative)
Re:Cool! Just like form AutoComplete (Score:3, Informative)
Not always. Big-Oh only means the worst case. Quicksort is O(n^2), but the worst case is so rare that it usually performs better than many O(n log n) algorithms.
Furthermore, Big-Oh only means an upper limit on the worst case. Quicksort is O(n^4), and O(n^5), and O(n^6). It also happens to be O(n^2), which is a much more useful statement. For some reason people like to talk about Big-Oh even if they really mean Big-Theta.
Re:Privacy? (Score:3, Informative)
You wouldn't have been so surprised if you had done what the rest of use did and READ THE FAQ!
http://labs.google.com/suggest/faq.html [google.com]
You would have found it if you had clicked the "Learn More" link prominantly displayed on the page.
Your own previous searches are not used at all in determining results. The results you see are exactly the same results everyone else will see. You're sending the same information to Google that you send in a normal search (i.e. your query). Google is sending the same information back to you that they normally send (the results). The only things that's different is that they send each of the little pieces of it as you type them.
No one has commented on privacy yet because privacy is irrelevant. No one has commented on terrorism yet either, does that surprise you?
Re:Implementation details (Score:2, Informative)
When will you support other languages?
We're not sure yet. But we're always interested in expanding our products into more languages, and hope to be able to offer you such services soon!
One more thing.. (Score:2, Informative)
http://www.google.com/complete/search?hl=en&js=tr