Autocomplete Reinvented

The goal of this short demo is to show how fast it is to configure an instant and relevant search on a set of data with Algolia's API.
With the help of TVShow Time, we selected a set of TV shows with their actors and the names of the episodes.

Shows

Name Followers
25523 1 How I Met Your Mother 163,071
25410 1 The Big Bang Theory 155,627
28285 1 Dexter 155,371

Actors

Name Starred in
Alyson Hannigan 25523 1 How I Met Your Mother
Bob Saget 25523 1 How I Met Your Mother
Cobie Smulders 25523 1 How I Met Your Mother

Episodes

Name Show
S01E01
Pilot
25523 1 How I Met Your Mother
S01E02
Purple Giraffe
25523 1 How I Met Your Mother
S01E03
Sweet Taste of Liberty
25523 1 How I Met Your Mother

Look for a show

Starting with a simple JSON file and with this simple config, we allow the users to search for TV Shows by typing either the names of the shows, the names of the actors or the names of the episodes.

Backend code:

Frontend code (javascript in browser):

var client = algoliasearch('YourAPPID', 'YourAPIKey');
var index = client.initIndex('tvshows');
index.search('dexter', searchCallback);

View full UI source code