mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-04 19:30:13 +00:00
sorting on _id is depreciated, using youtube_id instead
This commit is contained in:
parent
ea8f259553
commit
f9c09d215e
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user