From 49cd272557baaaf5cf265bc0e5a15ea6dcf1a7e9 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 5 Jan 2022 15:10:33 +0700 Subject: [PATCH] size limit for ryd missing rating query --- tubearchivist/home/src/reindex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/reindex.py b/tubearchivist/home/src/reindex.py index 02661cd..ea9900a 100644 --- a/tubearchivist/home/src/reindex.py +++ b/tubearchivist/home/src/reindex.py @@ -97,11 +97,12 @@ class Reindex: """get all videos without rating if ryd integration is enabled""" headers = {"Content-type": "application/json"} data = { + "size": 200, "query": { "bool": { "must_not": [{"exists": {"field": "stats.average_rating"}}] } - } + }, } query_str = json.dumps(data) url = self.es_url + "/ta_video/_search"