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
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class ElasticBackup:
data = { data = {
"query": {"match_all": {}}, "query": {"match_all": {}},
"size": 100, "pit": {"id": pit_id, "keep_alive": "1m"}, "size": 100, "pit": {"id": pit_id, "keep_alive": "1m"},
"sort": [{"_id": {"order": "asc"}}] "sort": [{"youtube_id": {"order": "asc"}}]
} }
query_str = json.dumps(data) query_str = json.dumps(data)
url = es_url + '/_search' url = es_url + '/_search'