From 508b00e471a99bc4441f77cad34fe98d80c00e2a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 23 Nov 2022 19:02:31 +0000 Subject: [PATCH] Pre-create meta index --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index 9e898e8..45ae7c1 100644 --- a/db.py +++ b/db.py @@ -79,7 +79,7 @@ async def initialise_elasticsearch(): """ auth = (ELASTICSEARCH_USERNAME, ELASTICSEARCH_PASSWORD) client = AsyncElasticsearch(ELASTICSEARCH_HOST, http_auth=auth, verify_certs=False) - for index in ("main", "restricted", "internal"): + for index in ("main", "meta", "restricted", "internal"): if index == "internal": map_dict = mapping_int else: