我正在使用python ES client,我想查询有关索引的统计信息。更具体地说,我正在寻找以下端点:

GET /_stats

有谁知道如何使用文档中提到的IndicesClient类?

最佳答案

尝试:

from elasticsearch import Elasticsearch

es = Elasticsearch("localhost:9200")
es.indices.stats(index=<your_index_name>)

关于python - Elasticsearch Python API GET索引统计信息,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/53157220/

10-12 17:54
查看更多