def METHOD_NAME():
    nonlocal lang, searcher, retriever
    query = request.form['q']
    if not query:
        search_results = []
        flash('Question is required')
    else:
        hits = searcher.METHOD_NAME(query, k=k)
        docs = [searcher.doc(hit.docid) for hit in hits]
        search_results = [
            {
                'rank': r + 1,
                'docid': hit.docid,
                'doc': docs[r].contents(),
                'score': hit.score,
            }
            for r, hit in enumerate(hits)
        ]
    return render_template(
        'acl.html', search_results=search_results, query=query, lang=lang, retriever=retriever
    )