Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/r/e/redis-search-py-HEAD/redis_search/query.py   redis-search-py(Download)
 
import util
from util import split_words, split_pinyin, utf8, mk_sets_key, mk_score_key, mk_condition_key, mk_complete_key
 
def query(name, text, offset=0, limit=10, sort_field='id', conditions=None):
    rangelen = util.complete_max_length
    prefix = keyword.lower()
    key = mk_complete_key(name)
 
    start = util.redis.zrank(key, prefix)

src/r/e/redis-search-py-HEAD/redis_search/index.py   redis-search-py(Download)
 
import util
from util import split_words, split_pinyin, utf8, mk_sets_key, mk_score_key, mk_condition_key, mk_complete_key
 
class index(object):
            pipe.sadd(mk_sets_key(self.name, pinyin), self.id)
 
        key = mk_complete_key(self.name)
        for word in words:
            for i in range(0, len(word)):