def query(id, lang, str, repo = None, txn = None): terms = p.preprocess(lang, str) return query_terms(id, lang, terms, repo = repo, txn = txn)