Pre-create meta index

This commit is contained in:
Mark Veidemanis 2022-11-23 19:02:31 +00:00
parent 9d1e4b44e8
commit 508b00e471
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

2
db.py
View File

@ -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: