Home > redis_autocomplete

redis_autocomplete

Redis_autocomplete is a project mainly written in Ruby, based on the MIT license.

Redis autocomplete for extremely fast and simple autocomplete suggestions.

= About

RedisAutocomplete is a simple gem for extremely fast autocomplete suggestions. Just add words to it and ask it to make suggestions given a search prefix.

The algorithm used is orginally from Salvatore (antirez) Sanfilippo, the Redis author. http://antirez.com/post/autocomplete-with-redis.html

RedisAutocomplete was written and maintained by simple10[http://github.com/simple10] and Empact[http://github.com/Empact] for http://connect.me.

== Usage

initialize with the name of the redis set you want to use

r = RedisAutocomplete.new(:set_name => :tags) r.add_words(%w[developer, designer, dude, architect, baker, banker]) r.suggest('de')

['developer', 'designer']

== Copyright

Copyright (c) 2011 Joe Johnston. See LICENSE.txt for further details.