Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Redis autocomplete for extremely fast and simple autocomplete suggestions.
Ruby
tree: 8ae25f45f5

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
redis_autocomplete.gemspec

README.rdoc

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

Copyright © 2011 Joe Johnston. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.