by kolektiv · 16y ago · 0 comments
You could probably extend this to include that kind of thing with some clever hacking, but as it stands this is still a long way from competing with something like Sphinx. Still - it's a nice little demo of using Redis for something and taking advantage of the specific strengths of Redis such as first class set support.
A larger, Redis-backed search engine would certainly be an interesting project though...
redis.zincrby(metaphone_key, item.item_id, 1)
This will allow you to sort items by highest number of occurrences