How to get a list of all indexes in python-elasticsearch

后端 未结 7 1882
北海茫月
北海茫月 2021-02-06 20:32

How would I get a list of the names of an index in Python? Here is what I have so far:

>>> es=e.es
>>> es


        
7条回答
  •  误落风尘
    2021-02-06 21:11

    You can get _mapping to get list of all indexes by doing something like that.

    requests.get(full_elastic_url + "/_mapping")
    

提交回复
热议问题