diff --git a/tubearchivist/home/src/index_management.py b/tubearchivist/home/src/index_management.py index 533e379..cf2b83e 100644 --- a/tubearchivist/home/src/index_management.py +++ b/tubearchivist/home/src/index_management.py @@ -391,7 +391,7 @@ class ElasticBackup: data = { "query": {"match_all": {}}, "size": 100, "pit": {"id": pit_id, "keep_alive": "1m"}, - "sort": [{"_id": {"order": "asc"}}] + "sort": [{"youtube_id": {"order": "asc"}}] } query_str = json.dumps(data) url = es_url + '/_search'