96def search(query, params) -> EngineResults:
100 'wildcard':
r'%' + query.replace(
' ',
r'%') +
r'%',
102 'offset': (params[
'pageno'] - 1) * limit,
104 query_to_run = query_str +
' LIMIT :limit OFFSET :offset'
108 cur.execute(query_to_run, query_params)
109 col_names = [cn[0]
for cn
in cur.description]
111 for row
in cur.fetchall():
112 kvmap = dict(zip(col_names, map(str, row)))
113 if result_type ==
"MainResult":