你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
森 - Elasticsearch,php
赞同来自: ppppenger
GET _cat/aliases?v 或 GET _alias
Charele - Cisco4321
赞同来自:
inter61
要回复问题请先登录或注册
90后
3 个回复
森 - Elasticsearch,php
赞同来自: ppppenger
Charele - Cisco4321
赞同来自:
如果要在程序中判断,还需要另外的步周。取决于你是如何运行你的程序的。是rhlc方式,还是dsl
inter61
赞同来自:
es = Elasticsearch(timeout=120, hosts=[{'host': host, 'port': port}])
index = ‘name’
print es.indices.get_alias(index )
这样可以获取到索引的别名
你可以先遍历所有索引名称再判断别名