How does autocomplete work?

Sorry for the n00b question, but I’m curious, how is algolia able to return results so quickly to the autocomplete without refreshing the page? I’m playing with a test data set of about 50K objects, and can instantly pull down any of those items. It’s amazing, and I’m just trying to figure out how it’s done :slight_smile:

Hi,

We are happy that you are enjoying the speed and experience of Algolia.
For the speed part, Algolia is designed to retrieve results in a very fast manner. One of the reasons is because we control the entire stack from software to hardware. Another reason is that we do a lot of pre-processing on the data at index time.

When it comes to displaying the auto-complete without refreshing the page we use asynchronous javascript mechanism. This way, we avoid reloading the page to display and update the results.

Here are some articles around the “magic” behind the engine:

Thank you Robert. This article is very helpful!

1 Like