def build_search_query(query, page, per_page) -> dict:
    """
    Build the multi-search query for Elasticsearch.
    :param str query:
    :param int page:
    :param int per_page:
    """
    search_query = {
        "query": {"multi_match": {"query": query, "fields": ["*"]}},
        "from": (page - 1) * per_page,
        "size": per_page,
    }

    return search_query