我如何在Python中获取索引名称的列表?以下是我的目前代码:
>>> es=e.es
>>> es
<Elasticsearch([{'host': '14555f777d8097.us-east-1.aws.found.io', 'port': 9200}])>
>>> es.indices
<elasticsearch.client.indices.IndicesClient object at 0x10de86790>
# how to get a list of all indexes in this cluster?
get_aliases()
方法吗?根据这个例子,你应该能够使用通配符*
来获取所有索引。 - Morgan Thrapp