use appropriate alias creation api (#1114)

This commit is contained in:
Cameron Horn 2026-02-08 05:21:17 -05:00 committed by GitHub
parent 382e81d727
commit 81d1da3c7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class ElasticIndex:
if settings.DEBUG:
print(f"create alias with data: {data}")
response, status_code = ElasticWrap("_alias").put(data=data)
response, status_code = ElasticWrap("_aliases").post(data=data)
if status_code not in [200, 201]:
print(f"{status_code}: {response}")
raise ValueError("alias update failed")