def search(container, criteria=None):
    """
        Does a search with the given criteria.

        Args:
            container(shelf.container.Container)
            criteria(dict | None)

        Returns:
            Flask response
    """
    container.search_portal.search(criteria)
    response = container.context_response_mapper.to_response(status_code=204)

    return response