def get_unique_repository():
    """ Retrieve all the repository names from the index. """
    query_unique_repository = """
    {
        "size": 0,
        "aggs": {
            "unique_repos": {
                "terms": {
                    "field": "origin",
                    "size": 5000
                }
            }
        }
    }
    """
    return query_unique_repository
