From f9c09d215e35545fb65fe6790ea8545bdac85aa1 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 17 Sep 2021 12:52:00 +0700 Subject: [PATCH] sorting on _id is depreciated, using youtube_id instead --- tubearchivist/home/src/index_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'