No commit activity in last 3 years
No release in over 3 years
Use Redis for fast autocomplete suggestions. Just add words to it and ask it to make suggestions given a search prefix. Originally packaged for http://connect.me.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
>= 0
~> 2.3.0

Runtime

~> 2.1
 Project Readme

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. antirez.com/post/autocomplete-with-redis.html

RedisAutocomplete was written and maintained by simple10 and Empact for 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 © 2011 Joe Johnston. See LICENSE.txt for further details.