Pre-create meta index
This commit is contained in:
parent
9d1e4b44e8
commit
508b00e471
2
db.py
2
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:
|
||||
|
|
Loading…
Reference in New Issue