sorting on _id is depreciated, using youtube_id instead

This commit is contained in:
simon 2021-09-17 12:52:00 +07:00
parent ea8f259553
commit f9c09d215e

View File

@ -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'