def query_doctypes(doctypes):
    """ES query for specified doctypes

    Args:
        doctypes (list)

    Returns:
        ES query (JSON)

    """
    return {"query": {"terms": {"doctype": doctypes}}}