'Python/ElasticSearch: delete alias without knowing index name
In my ElasticSearch server, I have alias "my-alias-1" pointing to an unknown index.
How can I removed the alias using Python? The doc I search always show I need to know the index name as well.
Solution 1:[1]
if you're using the elasticsearch-py client, the low level one - https://elasticsearch-py.readthedocs.io/en/0.4.3/api.html#elasticsearch.client.IndicesClient.delete_alias
if you're using another library or client, then you need to do the equivalent of sending a HTTP DELETE my-alias-1 request to Elasticsearch
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mark Walkom |
