Pyhon中遍历elasticsearch索引表
#使用通配符。适用于elasticsearch。 from elasticsearch import Elasticsearch es = Elasticsearch('127.0.0.1:9200') for index in es.indices.get('*'): print(index)