Skip to content

Instantly share code, notes, and snippets.

View bwghughes's full-sized avatar

Ben Hughes bwghughes

View GitHub Profile
@bwghughes
bwghughes / gist:2023191
Created March 12, 2012 16:32
Redis fulltext index
import re
# http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone
from metaphone import dm as double_metaphone
# get the Redis connection
from jellybean.core import redis
import models
# Words which should not be indexed
"""
server.py
"""
from gevent import monkey
monkey.patch_all()
from time import sleep, time
import bottle
"""
server.py
"""
from gevent import monkey
monkey.patch_all()
from time import sleep, time
import bottle