mflbackend/src/helpers.py
def compile_list(query, searchfield, querystr, lexicon, show,
                 size, start, mode, isfilter=False):
    " Ask karp about entries matching the given query "
    query = search_q(query, searchfield, querystr, lexicon, isfilter=isfilter)
    res = karp_query('minientry',
                     {'q': query, 'show': show, 'size': size,
                      'start': start, 'mode': mode,
                      'resource': lexicon})
    ans = es_all_source(res)
    return {"ans": ans, "total": es_total(res)}
 Ask karp about entries matching the given query 
Ask karp about entries matching the given query
Ask karp about entries matching the given query
def compile_list(query, searchfield, querystr, lexicon, show,
                 size, start, mode, isfilter=False):
    query = search_q(query, searchfield, querystr, lexicon, isfilter=isfilter)
    res = karp_query('minientry',
                     {'q': query, 'show': show, 'size': size,
                      'start': start, 'mode': mode,
                      'resource': lexicon})
    ans = es_all_source(res)
    return {"ans": ans, "total": es_total(res)}
def compile_list ( query , searchfield , querystr , lexicon , show , size , start , mode , isfilter = False ) : query = search_q ( query , searchfield , querystr , lexicon , isfilter = isfilter ) res = karp_query ( 'minientry' , { 'q' : query , 'show' : show , 'size' : size , 'start' : start , 'mode' : mode , 'resource' : lexicon } ) ans = es_all_source ( res ) return { "ans" : ans , "total" : es_total ( res ) }
Ask karp about entries matching the given query
Ask karp about entries matching the given query
" Ask karp about entries matching the given query "
query
searchfield
querystr
lexicon
show
size
start
mode
isfilter