• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

coding logic behind google search engine feature of on the fly results

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have a query regarding technology behind one of the feature in google search engine.

When i go to google home page "www.google.co.in" and type in my search query keywords - search results gets displayed on the fly as i enter keywords below the text area to enter search query.

For example, if I am typing in "javaranch" as soon as i type j it gives some results starting with letter j (top results probably), similarly for a den v den a - means java and so on till i type in "javaranch" completely.

How to include such a feature in search tab for say my personal website? What is the logic behind this coding ?

Please see the attached image for getting an idea about which feature i am asking above.

I feel this is a J2EE question. Direct me to correct place if this is not the right place to ask this question.

Thanks,
Vicky
one.PNG
[Thumbnail for one.PNG]
e.g. snapshot of my query
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vicky,

I'll move this to our General Computing forum.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vicky,
They are using a combination of technologies. The main one is AJAX to go to the server while still on the screen.

Since google is so huge, they are also using caching mechanisms and a distributed/grid array of processors.
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Assuming you are not a native-speaker it might be worth mentioning that this feature is called "auto completion". So if you search for it (or "autocomplete", "autocompleter") you will find enough resources which will explain how it works.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic