From d588a6093067ce33c80210c1fa0d5eb6d41f354d Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Wed, 11 Nov 2020 09:37:54 +1300 Subject: [PATCH] add source to searchable attributes. --- apiserver/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/search.py b/apiserver/search.py index 08f3617..62db610 100644 --- a/apiserver/search.py +++ b/apiserver/search.py @@ -35,7 +35,7 @@ def update_rankings(): def update_attributes(): try: - json = ['title', 'url', 'author', 'link', 'id'] + json = ['title', 'url', 'author', 'link', 'id', 'source'] r = requests.post(MEILI_URL + 'indexes/qotnews/settings/searchable-attributes', json=json, timeout=2) if r.status_code != 202: raise Exception('Bad response code ' + str(r.status_code))