Did I find the right examples for you? yes no

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

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):
 
        # score for search sort
        pipe.set(mk_score_key(self.name, self.id), self.score)
 
        # 将目前的编号保存到条件(conditions)字段所创立的索引上面
 
            pipe.srem(key, id)
            pipe.delete(mk_score_key(name, id))
 
        # remove set for prefix index key

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):
                    start = offset,
                    num = limit,
                    by = mk_score_key(name, "*"),
                    desc = True)
 
                    start = 0,
                    num = limit,
                    by = mk_score_key(name, "*"),
                    desc = True)
    if not ids: