Wouldn’t it be cool if search engines were as fast as you could type and actually showed you results as-you-type? As I found out this evening with jQuery in one hand and JSON in another, not only is it possible but turns out to be just as cool as I imagined.
Inspired by the realtime-ness of Google Wave, I wanted to build a prototype search engine that did away with a search button and page loads. Instead, search queries are sent character-by-character to the lightning fast Bing AJAX APIs which returned JSON results easily processed and formatted by Javascript on the page. The UI experience is driven solely by the browser.
The result is a truly “live” search experience which I’ve cunningly dubbed “The Real Live Search” as tribute to the former Microsoft search engine. I invite everyone to give it a quick whirl, but please bear in mind it’s only a couple hour’s work and may bite if prodded the wrong way.

35 Comments
nutterguy
Very nice! Not really sure what use this is in its current form bout could make a good desktop gadget.
Search box seems to collapse after the first search for me. Just becomes a small box with the “working” wheel.
WE3R_Cz
I agree that it’s pretty cool. Only I would suggest that the query submits only when there is a little pause in writing. Btw. I think that is MS used this strategy on their Bing site, there would be sure no. 1 in number of queries submitted
planetarian
new home page!
Yussef
Chevere programa, me gusta como muestra el listado de paginas y a la ves las imagenes, la velocidad de respuesta me parece aceptable teniendo en cuenta que te ahorras el clic del boton.
Solo encontre un error a veces aparece el mensaje “y3nh4ck3r was here!”
Paul
Very cool! The one thing I did notice though was that if you type fast you can get ahead of the search engine and then it keeps scrolling through all of the things that it found. If this were to be put into use it would still need an Enter button to just call it good and display the search results.
Sebbeck
Wow seriously, this is the coolest thing ever!
Wish bing worked like this and I think MANY more people would have used it.
I mean, its as awesum as sex… well…. almost…. not…. but you get the point
Ben
Very cool. Runs a little slow on my netbook though.
SaT
Hey this is awesome, be sure to save a copy of the source , i bet Microsoft will be trying to get it
Dorian Muthig
Too unresponsive. The API takes 3-4 seconds to respond. Doing that with Twitter (responds in 1 second or less) is so much more fun.
Zim
Amazing. Very cool! I like better how it works with images, because they are easier to filter as you search. Nice work!
@Dorian: I think it depends on your connection, I’m getting results pretty fast here.
Dustin
Right now the guys at their Network Operations Center are wondering why the hell their bandwidth needs just increased 5000% “WTF? Damn it’s that Long Zheng guy again!!”
Seriously though, if you use a timout and only send the request every half second after the last keystroke typed it would conserve the bandwidth needs for fast typers and eliminate the “catch-up” effect at the end.
I wrote code like this once for real-time search, looks something like this:
function doSearch(e)
{
if (getSearchString().length > 1 ) {
clearTimeout( lasttimeoutid );
lasttimeoutid=setTimeout( ‘DoTimerSearch()’, 500)
};
}
Fred
A suggestion for you:
Grab the top “suggestion” (i.e. what’s shown in the query box dropdown) and issue a simultaneous search for that. Figure out a way to display those search results mixed or side-by-side with the results for the exact string.
Ideally, I should be able to do something like type “windows 7 d”, and have the results for “windows 7 downloads” shown (because that’s the top suggestion).
Otherwise, it’s cool looking, but doesn’t really help me get to my results faster.
GoodThings2Life
Wow, that’s awesome! I can just imagine if you got it going on a datacenter environment the size of Microsoft or Google’s and tuned it a bit.
Long, you rock!
Daniello
Cool. I have to say, I am impressed. It’s still not that fast – but maybe it is just us geeks typing so fast.
Good job, definitely. Spread the word, everyone.
Sean
Very nice UI
This was also done via the Yahoo! BOSS API’s
http://pieisgood.org/search/
PortalCake
Well, it searches every time I type a letter, so maybe you might want to add a pause before it starts searching (your current one will hammer AJAX). Other than that, that was lightning fast!
jjpriest25
Doesn’t work on dialup(duh, self-apparent, but that’s all I have access to in my third-world state of Indiana). Looks like a good idea though.
Interestingly, I typed in ‘iphone’ and I got a bunch of picture results of washing machines. Thought that was funny.
Roni
very nice but results are looking like results from google ads
Praveen
nice job !
you site could perhaps gracefully end with a message to user when he/she searches for gibberish words like “;”
http://twitter.com/ithoughts_de
@istartedsomething : Dustin is right about this. Please don’t clutter the worldwide bandwidth. I just tried that thing for a name and it sent about 20 request. This way BING will easily dominate the charts, when they present how many requests they have been processing, BUT that won’t help the world. If one request was done when I typed the first word, it would have been enough. Perhaps you should check wheter a space-key was typed and then send a request AND check for time since last typed key as Dustin proposed earlier. This would give again a nice experience but won’t jam the data highway.
frisch
Very cool but imagine like 1000000 search requests per second if google or anything would really use this mechanism…
oh well they do have enough power to query those searches i guess
Martin S.
This is too cool! Awesome stuff, will be interesting to see if Bing actually does something similar
Liu Jingke
Really very cool mashup, clever guy!
Garion
Remember the original Live Search interface (http://photos1.blogger.com/photoInclude/blogger/5563/968/1600/search. jpg)
Is it possible for you to include that sort of unlimited scrolling as well?
Ah, start.com and the original live.com, how far Microsoft have come
porter
this is beetter
Mike
Congrats!!!!
I don’t impress easily but this is sure a big WOW!
Sure hope you have/will copyright the concept… could make you very rich!
M
Maciek
Cool.
Set as browser default start page
Mark Cramer
Very cool! Have you seen http://www.leapfish.com/? Not sure what they’re doing, but your implementation is VERY fast. Nicely done.
Nidhin George
Nice to see that you have brought out another fantastic service.
Win7Guru
Hey Long Zheng, have you visited Keyboardr.com, which was made by Julius Eckert? This is similar, but I like the loading throbber gif, because it isn’t too distracting and it shows that the api is working. I also like the option to hover over the results and have them instantly appear on the right side, as well as the bottom of the page. Keep up the amazing work.
Manmohanjit
@Mark Cramer
@Win7Guru
That are two cool sites.
@Garion
That would be nice! It would look better than.
Bingy
Cool but I feel concerned because some days back I read how much processing power a single Google query takes. Is this really needed? The keywords don’t change THAT much while searching do they?
Arthur K
Very cool service. What are you doing to commercialise it?
Craig S
You sir, are a god among men. This reminds me of keyboardr in a way
I think it would be cool if you could pull in some of Bing’s News results
Dean Nolan
Nice. I have been building a website for my business startup that sues similar technology to filter results while you type. http://www.time2munch.com
It’s pretty fast. I use MS SQL database, ASP.NET MVC and JQuery/JSON to get the results.
I did a blog post tutorial a few months ago also.
I’m sure I can still get it faster.
Leave a Reply
The Real life search – Bing and more « 小石头工作室 . Stone Studio .
[...] app was built by developer Long Zheng. In his blog post describing the app, he says that it was built in a few hours and may be prone to bugs (don’t [...]
新ウェブアプリとBing APIの「甘い恋」で、1文字入力するごとに検索が可能に
[...] このアプリは、www.istartedsomething.comの開発者であるLon g Zhengが作った。本人のブログ記事にあるアプリの説 によると、これは数時間で作ったもので、バグも多 いかもしれないとのこと(トラフィックが増えて反 が遅くなっても驚かないように)。 [...]
t3n-Linktipps: „Real Live Search“, Twittern via Facebook, „6 vor 9“, Mobile Web-Zukunft, Wikimedia und Community-Aufbau » t3n Magazin
[...] wie Long Zheng träumen davon. Er experimentiert mit den Bing-AJAX-APIs und hat eine erste „Real Live Search“ [...]
SearchCap: The Day In Search, August 21, 2009
[...] The Real Live Search – Bing API experiment, istartedsomething [...]
Friday Recap - Relive the Magic Edition | seo cloak
[...] Real Live Search is a search engine that uses a Bing API to provide search results as the user types. Basically, every letter added to the search box will result in different results being listed on [...]
Friday Recap - Relive the Magic Edition | feed hat blog
[...] Real Live Search is a search engine that uses a Bing API to provide search results as the user types. Basically, every letter added to the search box will result in different results being listed on [...]
Friday Recap - Relive the Magic Edition | webmarketingexperts.com.au
[...] Real Live Search is a search engine that uses a Bing API to provide search results as the user types. Basically, every letter added to the search box will result in different results being listed on [...]
The Real Live Search: buscas no Bing em tempo real | WinAjuda
[...] jQuery, JSON, API do Bing e algumas horas de trabalho. Essa foi a receita utilizada por Long Zheng para criar o The Real Live Search, uma versão em tempo real do Bing, buscador da Microsoft. O nome [...]
The Real Live Search – See Search Results As You Type
[...] Long Zheng, the developer of this tool, says in his blogpost : [...]
محرك بحث بينق باستخدام AJAX API سرعة لا مثيل لها | عالم التقنية
[...] المصدر var addthis_pub="techwd"; أطبع هذه المقالة | أرسل الصفحة إلى صديق [...]
Technology News » The Real Live Search – Bing API experiment
[...] I started Something Comments (0) var addthis_pub = [...]
Real Time searching | Mobile Jewels
[...] video previews, but still has a way to go to be truly different than Google. [Long]put together this prototype of a real time search system based off of Bings API. He was inspired by Google Wave which we hope to see soon. Wave is primarily [...]
مکی کا بلاگ » بلاگ محفوظات » اجاکس Bing سرچ انجن
[...] Long Zheng نامی ایک پروگرامر نے مائکروسوفٹ کی Bing APIs کو استعمال کرتے ہوئے اجاکس پر مبنی ایک تجرباتی حقیقی لائیو سرچ انجن بنایا ہے، اب چونکہ اس میں اجاکس کا استعمال کیا گیا ہے چنانچہ صفحہ لوڈ نہیں ہوتا بلکہ یہاں آپ ٹائپ کر رہے ہوتے ہیں اور یہاں نتائج ظاہر ہو رہے ہوتے ہیں وہ بھی ناقابل یقین انتہائی تیز رفتاری سے.. میرے خیال سے Bing کو اس تجربہ کا فائدہ اٹھانا چاہیے اگر وہ واقعی گوگل کو مات دینا چاہتا ہے.. پروگرامر کا کہنا ہے کہ یہ صرف اس کے چند گھنٹوں کے کام کا نتیجہ ہے چنانچہ اس میں غلطیوں کے کافی امکانات ہیں.. میں نے اس سرچ انجن میں اردو اور عربی میں بھی تلاش کیا ہے اور نتائج حیران کن ہیں.. [...]
Real Time searching - Hack a Day
[...] video previews, but still has a way to go to be truly different than Google. [Long]put together this prototype of a real time search system based off of Bings API. He was inspired by Google Wave which we hope to see soon. Wave is primarily [...]