def extract_suggest_items(res) -> list:
    """Formatting items from search to suggest format."""
    items = []

    es_hits = res['hits']['hits']
    if es_hits:
        for elem in es_hits:
            hit = elem['_source']

            item_dict = {
                'page_title': hit['page_title'],
                'person_link': hit['person_link'],
                'photo_link': hit['photo_url'],
            }
            items.append(item_dict)

    return items