Tag Archives: autocomplete

Redis Autocomplete – 8 millions of entries

This is a demo of the new ZRANGEBYLEX Redis command. It autocompletes the query field using all the 8 millions of unique lines of the Linux kernel source code as autocompletion dictionary. 

Every time the user types something, the page sends a request to a small PHP snippet called search.php which sends a query to Redis, and returns the result to the web page as a JSON array.
As you type in the input field below, you’ll see the list of suggestions appearing. 

http://autocomplete.redis.io/
http://redis.io/commands/zrangebylex

https://gist.github.com/antirez/11126283
http://jqueryui.com/autocomplete/#remote