This new web search service suggests queries as a user types what he or she is looking for into the search box. By offering more refined searches up front, Google Suggest can make searching more convenient and efficient, because it eliminates the need to type the entire text of a query. In addition, the service can connect users with new query suggestions that are useful, intriguing, and fun.
How does it works? Quite simple. As you tpye in the search textbox, it makes an client http request to http://www.google.com/complete/search with this format:
http://www.google.com/complete/search?hl=en&js=true&qu=google
Where google is the value of the text in the search textbox.
The result is an small javascript array. Here is the result for the query above:
sendRPCDone(frameElement, “google”, new Array(”google”, “google toolbar”, “google.com”, “google scholar”, “google mail”, “google desktop”, “google tool bar”, “google uk”, “google images”, “google email”), new Array(”122,000,000 results”, “2,620,000 results”, “1 result”, “458,000 results”, “15,900,000 results”, “7,620,000 results”, “1,240,000 results”, “13,800,000 results”, “11,400,000 results”, “9,600,000 results”), new Array(”"));